Newer
Older
AMI-Aptio-BIOS-Reversed / TcgPei / TcgPei.h
@Ajax Dong Ajax Dong 2 days ago 2 KB Init
#ifndef __TCGPEI_H__
#define __TCGPEI_H__

#include <Uefi.h>

/*
 * TcgPei.h
 *
 * Lightweight index for the recovered TcgPei PEIM.  Exact EDK2 types are not
 * fully recovered yet, so most routines are listed by recovered name and image
 * address instead of declared as public prototypes.
 */

/* Memory helpers */
// memset_v2 @ 0xffe0a9b8
// memcmp_v2 @ 0xffe0a9d8
// memmove_v2 @ 0xffe0a9f8
// SetMem32 @ 0xffe0aa38
// memset32_v2 @ 0xffe0aa58

/* PEIM entry and protocol handoff */
EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable);
// LocateProtocolAndHandOff @ 0xffe0ad36
// Return_NotStarted @ 0xffe0ad8d
// TpmPeiInit @ 0xffe0b18a

/* TPM 1.2 command transport and commands */
// Tpm12Transmit @ 0xffe0ad93
// Tpm12Receive @ 0xffe0aea0
// Tpm12Command_Extend @ 0xffe0af3c
// Tpm12Command_GetRandom @ 0xffe0b07e
// Tpm12Command_PhysicalPresence @ 0xffe0b10a
// Tpm12Command_GetCapability_SubOwner @ 0xffe0b15d
// Tpm12Command_ForceClear @ 0xffe0b16b
// memset_TpmCmd @ 0xffe0b3e8
// Tpm12Command_Init @ 0xffe0b41f
// Tpm12Command_Startup @ 0xffe0b46e
// Tpm12Command_SaveState @ 0xffe0b502
// Tpm12WaitResponse @ 0xffe0b515
// Tpm12Command_ContinueSelfTest @ 0xffe0b54e
// Tpm12Command_GetCapability_TpmVersion @ 0xffe0b58b
// Tpm12Command_GetCapability_Deactivated @ 0xffe0b609
// Tpm12Command_GetCapability_PermanentFlags @ 0xffe0b661
// Tpm12Command_GetCapability_VolatileFlags @ 0xffe0b6ff
// Tpm12Command_PhysicalEnable @ 0xffe0b786
// Tpm12Command_ExtendAll @ 0xffe0bbd7

/* TPM presence, chipset, and board helpers */
// TpmIsPresent @ 0xffe0b3b4
// TpmIsPresent_Failure @ 0xffe0b85c
// Tpm12GetPtpInterface @ 0xffe0b890
// TpmIsEnabled @ 0xffe0b8e5
// InitBoardSpecific @ 0xffe0b919
// Tpm12CheckCmos @ 0xffe0b976
// GetPchTpm @ 0xffe0cf93
// GetSystemConfiguration @ 0xffe0cf96
// InitTpmDevice @ 0xffe0cfe5

/* Debug, timing, PEI services, and boot-mode support */
// GetReportStatusCodeProtocol @ 0xffe0b2b7
// DebugPrint @ 0xffe0b2e8
// DebugAssert @ 0xffe0b312
// MicroSecondDelay @ 0xffe0b330
// IoWrite32 @ 0xffe0b37f
// CheckUnaligned16 @ 0xffe0bb06
// CheckUnaligned32 @ 0xffe0bb64
// GetPerformanceCounter @ 0xffe0bb90
// GetPeiServices @ 0xffe0cfc8
// PeiServicesInitMmio @ 0xffe0cfd4
// ReadCmos @ 0xffe0d071
// ReadIdtr @ 0xffe0d0b0
// CalculateCrc @ 0xffe0d0d3
// GetBootMode @ 0xffe0d0f1
// GetBootModeHandOff @ 0xffe0d149
// GetBootModePrevious @ 0xffe0d158
// InitializeTpmStack @ 0xffe0d167
// CalculateCrc16 @ 0xffe0d202

/* SHA-1 implementation */
// Sha1Init @ 0xffe0ce11
// Sha1Update @ 0xffe0ce3c
// Sha1Final @ 0xffe0ced2

#endif /* __TCGPEI_H__ */