10#ifndef _TCG_SERVICE_PROTOCOL_H_
11#define _TCG_SERVICE_PROTOCOL_H_
15#define EFI_TCG_PROTOCOL_GUID \
16 {0xf541796d, 0xa62e, 0x4954, { 0xa7, 0x75, 0x95, 0x84, 0xf6, 0x1b, 0x9c, 0xdd } }
31 UINT8 HashAlgorithmBitmap;
37typedef UINT32 TCG_ALGORITHM_ID;
66 OUT UINT32 *TCGFeatureFlags,
93 IN UINT64 HashDataLen,
94 IN TCG_ALGORITHM_ID AlgorithmId,
95 IN OUT UINT64 *HashedDataLen,
96 IN OUT UINT8 **HashedDataResult
120 IN OUT UINT32 *EventNumber,
142 IN UINT32 TpmInputParameterBlockSize,
143 IN UINT8 *TpmInputParameterBlock,
144 IN UINT32 TpmOutputParameterBlockSize,
145 IN UINT8 *TpmOutputParameterBlock
175 IN UINT64 HashDataLen,
176 IN TCG_ALGORITHM_ID AlgorithmId,
178 IN OUT UINT32 *EventNumber,
EFI_STATUS(EFIAPI * EFI_TCG_PASS_THROUGH_TO_TPM)(IN EFI_TCG_PROTOCOL *This, IN UINT32 TpmInputParameterBlockSize, IN UINT8 *TpmInputParameterBlock, IN UINT32 TpmOutputParameterBlockSize, IN UINT8 *TpmOutputParameterBlock)
EFI_STATUS(EFIAPI * EFI_TCG_LOG_EVENT)(IN EFI_TCG_PROTOCOL *This, IN TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, IN UINT32 Flags)
EFI_STATUS(EFIAPI * EFI_TCG_HASH_LOG_EXTEND_EVENT)(IN EFI_TCG_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS HashData, IN UINT64 HashDataLen, IN TCG_ALGORITHM_ID AlgorithmId, IN OUT TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry)
EFI_STATUS(EFIAPI * EFI_TCG_HASH_ALL)(IN EFI_TCG_PROTOCOL *This, IN UINT8 *HashData, IN UINT64 HashDataLen, IN TCG_ALGORITHM_ID AlgorithmId, IN OUT UINT64 *HashedDataLen, IN OUT UINT8 **HashedDataResult)
EFI_STATUS(EFIAPI * EFI_TCG_STATUS_CHECK)(IN EFI_TCG_PROTOCOL *This, OUT TCG_EFI_BOOT_SERVICE_CAPABILITY *ProtocolCapability, OUT UINT32 *TCGFeatureFlags, OUT EFI_PHYSICAL_ADDRESS *EventLogLocation, OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry)
UINT64 EFI_PHYSICAL_ADDRESS
BOOLEAN TPMDeactivatedFlag
00h = TPM not present.
TCG_VERSION StructureVersion
Size of this structure.