/** @file
TcgDxe.h -- Header for TcgDxe
Copyright (c) HR650X BIOS Decompilation Project
**/
#ifndef __TCGDXE_H__
#define __TCGDXE_H__
#include "../uefi_headers/Uefi.h"
//
// Function Prototypes
//
char *
EFIAPI
InternalCopyMem(
char *dst,
char *src,
unsigned __int64 count
);
void
EFIAPI
CpuBreakpoint(
VOID
);
void *
EFIAPI
InternalSetMem(
void *buf,
unsigned __int64 count,
char value
);
UINTN
EFIAPI
TpmInitHardware(
UINTN AllocationSize,
unsigned __int64 a2
);
void
EFIAPI
IoDelay(
VOID
);
UINT32
EFIAPI
IoWrite32(
UINTN Port,
UINT32 Value
);
UINT32
EFIAPI
IoRead32(
UINTN Port
);
UINT32
EFIAPI
IoWrite32_2(
UINTN Port,
UINT32 Value
);
UINT32
EFIAPI
IoRead32_2(
UINTN Port
);
EFI_STATUS
EFIAPI
ModuleEntryPoint(
EFI_HANDLE ImageHandle,
EFI_SYSTEM_TABLE *SystemTable
);
__int64
EFIAPI
UefiDriverEntryPoint(
__int64 ImageHandle,
EFI_SYSTEM_TABLE *SystemTable
);
__int64
EFIAPI
TcgConfigureProtocol(
__int64 a1,
__int64 a2
);
unsigned __int64
EFIAPI
TcgConfigureDbVariable(
VOID
);
__int64
EFIAPI
MeasureTeImage(
__int64 *a1,
_BYTE *p_n20_1
);
unsigned __int64
EFIAPI
MeasurePeImage(
__int64 a1,
unsigned __int64 a2,
_BYTE *p_n20
);
__int64
EFIAPI
LoadPeImage(
VOID
);
__int64
EFIAPI
ReadPartitionTable(
__int64 a1
);
__int64
EFIAPI
TpmHashLogExtendEvent(
__int64 a1
);
void
EFIAPI
TcgNotificationEvent(
VOID
);
__int64
EFIAPI
TcgDxeDriverEntry(
EFI_HANDLE ImageHandle,
__int64 a2
);
unsigned __int64
EFIAPI
TcgExitBootService(
VOID
);
__int64
EFIAPI
TcgDecodeTpm12Id(
VOID
);
unsigned __int64
EFIAPI
TcgUnsupported(
VOID
);
__int64
EFIAPI
TcgGetCapability(
__int64 a1,
unsigned __int64 a2,
_QWORD *a3,
unsigned __int64 a4,
_QWORD *a5
);
unsigned __int64
EFIAPI
TcgSetCapability(
VOID
);
__int64
EFIAPI
TcgSubmitCommand(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5
);
void
EFIAPI
TcgReadyToBootEvent(
VOID
);
__int64
EFIAPI
TcgReadyToBootEvent2(
__int64 a1,
__int64 n20,
__int64 a3
);
__int64
EFIAPI
TcgLogEvent2(
__int64 a1,
unsigned int n22,
__int64 a3,
unsigned int n36,
__int64 a5
);
__int64
EFIAPI
TpmExtendAndLog(
__int64 a1,
unsigned int n20,
__int64 a3,
__int64 a4
);
__int64
EFIAPI
TcgGetEventLog(
__int64 a1,
__int64 a2,
_DWORD *a3,
_QWORD *a4,
_QWORD *a5
);
unsigned __int64
EFIAPI
TcgGetCapabilityProtocol(
__int64 a1,
__int64 a2,
_DWORD *a3,
_QWORD *a4,
__int64 *a5
);
unsigned __int64
EFIAPI
TcgHashData(
VOID
);
__int64
EFIAPI
TcgCommonLogEvent(
__int64 a1,
unsigned int *p_n20,
unsigned int *a3,
int a4
);
__int64
EFIAPI
TcgLogEvent(
__int64 a1,
unsigned int n22,
__int64 a3,
int n36,
__int64 a5
);
__int64
EFIAPI
TcgDxeHashLogExtendEvent(
VOID
);
__int64
EFIAPI
TcgAcpiTableInstall(
__int64 a1
);
__int64
EFIAPI
SetTcgAcpiTable(
VOID
);
unsigned __int64
EFIAPI
CopyLogToAcpiNvs(
VOID
);
__int64
EFIAPI
TcgDxeEntry(
EFI_HANDLE ImageHandle,
__int64 a2
);
__int64
EFIAPI
TpmGetRandom(
VOID
);
void
EFIAPI
DebugPrint(
UINTN ErrorLevel,
const CHAR8 *Format,
...
);
__int64
EFIAPI
AssertReport(
__int64 a1,
__int64 a2,
__int64 a3
);
void *
EFIAPI
CopyMem(
void *DestinationBuffer,
const void *SourceBuffer,
UINTN Length
);
INTN
EFIAPI
CompareMem(
const void *DestinationBuffer,
const void *SourceBuffer,
UINTN Length
);
void *
EFIAPI
ZeroMem(
void *Buffer,
UINTN Length
);
__int64
EFIAPI
TpmDeviceInit(
VOID
);
UINTN
EFIAPI
StrLen(
const CHAR16 *String
);
HRESULT
EFIAPI
HashData(
LPBYTE pbData,
DWORD cbData,
LPBYTE pbHash,
DWORD cbHash
);
void *
EFIAPI
AllocatePool(
UINTN AllocationSize
);
void
EFIAPI
FreePool(
void *Buffer
);
__int64
EFIAPI
GetFileSize(
__int64 i
);
bool
EFIAPI
TpmSendCommand(
__int64 i
);
char
EFIAPI
TpmCmdSelfTest(
__int64 i
);
char
EFIAPI
TpmCmdContinueSelfTest(
__int64 i
);
__int64
EFIAPI
TpmCmdExtend(
__int64 i
);
__int64
EFIAPI
TpmCmdGetRandom(
__int64 i
);
bool
EFIAPI
TpmCmdGetCapability(
__int64 i
);
char
EFIAPI
TpmCmdStartup(
__int64 i
);
void
EFIAPI
nullsub_1(
VOID
);
__int64
EFIAPI
CreateEvent(
__int64 a1,
__int64 (__fastcall *sub_175C)(),
__int64 a3,
__int64 a4
);
__int64
EFIAPI
TcgDxeLibConstructor(
__int64 ImageHandle
);
UINT32
EFIAPI
MmioRead32(
UINTN Address
);
__int64
EFIAPI
TpmCmdShutdown(
unsigned int n107
);
{"addr":"0x35b0","code":"void *
EFIAPI
Sha1Transform(
_DWORD *Sha1Context,
const void *SourceBuffer
);
BOOLEAN
EFIAPI
Sha1Update(
void *Sha1Context,
const void *Data,
UINTN DataSize
);
BOOLEAN
EFIAPI
Sha1Final(
void *Sha1Context,
UINT8 *HashValue
);
char
EFIAPI
CopyMemS(
__int64 a1,
int *p_n20_1,
char *p_n20,
__int64 n20
);
_WORD *
EFIAPI
GetVariableString(
__int64 a1,
__int64 a2,
__int64 a3
);
__int64
EFIAPI
CharToUpper(
int n5
);
char
EFIAPI
IsHexChar(
char *a1,
char a2
);
__int64
EFIAPI
HexStrToInt64(
__int64 a1
);
unsigned __int64
EFIAPI
HexCharToInt(
char *a1
);
unsigned __int64
EFIAPI
HexStrToInt(
char *a1,
__int64 a2
);
unsigned __int64
EFIAPI
StrToGuid(
_BYTE *a1,
_BYTE *a2,
__int64 a3,
char a4
);
unsigned __int64
EFIAPI
StrToHex(
__int64 a1,
_BYTE *a2,
_QWORD *a3
);
bool
EFIAPI
IsTpmDevice(
VOID
);
char
EFIAPI
IsTpm12(
VOID
);
bool
EFIAPI
IsTpm2(
VOID
);
char
EFIAPI
IsTpmPresent(
VOID
);
__int64
EFIAPI
DebugPrint2(
int a1,
int n50694680,
int a3
);
UINT32
EFIAPI
MmioOr32(
UINTN Address,
UINT32 OrData
);
UINT32
EFIAPI
MmioRead32_2(
UINTN Address
);
void *
EFIAPI
AllocateZeroPool(
UINTN AllocationSize
);
GUID *
EFIAPI
CopyGuid(
GUID *DestinationGuid,
const GUID *SourceGuid
);
bool
EFIAPI
TcgDxeRegisterNotify(
__int64 ImageHandle,
__int64 a2
);
__int64
EFIAPI
StrToUpper(
unsigned __int16 *a1
);
__int64
EFIAPI
StrLen2(
__int64 a1
);
__int64
EFIAPI
StrToGuid2(
GUID *DestinationGuid,
__int64 a2
);
char
EFIAPI
ReturnFalse(
VOID
);
EFI_STATUS
EFIAPI
ReportStatusCode(
EFI_STATUS_CODE_TYPE Type,
EFI_STATUS_CODE_VALUE Value
);
#endif /* __TCGDXE_H__ */