/** @file TxtDxe.h -- Header for TxtDxe Copyright (c) HR650X BIOS Decompilation Project **/ #ifndef __TXTDXE_H__ #define __TXTDXE_H__ #include "../uefi_headers/Uefi.h" // // Function Prototypes // EFI_STATUS EFIAPI TxtDxeLaunchBiosAcm (IN UINT64 BiosAcmAddress, IN UINT32 Flags); VOID *EFIAPI GetDebugPrintProtocol (VOID); VOID EFIAPI DebugPrint (IN UINTN ErrorLevel, IN CONST CHAR8 *Format, ...); VOID EFIAPI AssertBreak (IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Assertion); VOID *EFIAPI GetPcdProtocol (VOID); VOID *EFIAPI GetHobList (VOID); VOID *EFIAPI FindHobByGuid (IN EFI_GUID *Guid); VOID *EFIAPI CopyMemS (OUT VOID *Destination, IN CONST VOID *Source, IN UINTN Length); EFI_STATUS EFIAPI GetPlatformConfigVariable (IN CONST UINT16 *VariableName, IN EFI_GUID *VendorGuid, OUT VOID *Buffer, IN OUT UINTN *BufferSize); EFI_STATUS EFIAPI SetPlatformConfigVariable (IN CONST UINT16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Buffer); BOOLEAN EFIAPI IsLtProcessor (VOID); BOOLEAN EFIAPI IsBiosAcmSuccessful (VOID); BOOLEAN EFIAPI IsTxtEnabled (VOID); EFI_STATUS EFIAPI LocateTxtDeviceMemoryPolicy (VOID); EFI_STATUS EFIAPI LocateTxtPlatformPolicy (VOID); EFI_STATUS EFIAPI GetMpTableApicIds (OUT UINT16 *ApCount, OUT UINT32 *ApicIdTable); VOID EFIAPI ConfigureMachineCheckBanks (IN UINT32 Flags); EFI_STATUS EFIAPI GetLtDxeLibSetupOption (OUT UINT8 *SetupValue); EFI_STATUS EFIAPI GetAcmErrorType (OUT UINT8 *AcmType); VOID EFIAPI HandleAcmError (IN UINT32 SpadHigh); VOID EFIAPI ClearLtTpmCmosState (VOID); VOID EFIAPI ApplyTxtPolicyToPlatformConfig (IN UINT8 PolicyByte); EFI_STATUS EFIAPI RegisterForScheckLockConfigCallback (VOID); EFI_STATUS EFIAPI CloseS3BootScriptResources (VOID); EFI_STATUS EFIAPI InstallTxtDxeProtocol (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable); VOID EFIAPI PlatformLaunchBiosAcm (IN UINT64 BiosAcmAddress, IN UINT32 Flags); EFI_STATUS EFIAPI InitializeLtDxeLib (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable); EFI_STATUS EFIAPI DriverInit (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable); EFI_STATUS EFIAPI TxtDxeMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable); EFI_STATUS EFIAPI TxtDxeCleanup (VOID); EFI_STATUS EFIAPI TxtDxeUnload (IN EFI_HANDLE ImageHandle); EFI_STATUS EFIAPI _ModuleEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable); // // Driver globals // extern EFI_HANDLE gImageHandle; extern EFI_SYSTEM_TABLE *gSystemTable; extern EFI_BOOT_SERVICES *gBootServices; extern EFI_RUNTIME_SERVICES *gRuntimeServices; extern EFI_DXE_SERVICES *gDxeServicesTable; extern VOID *mMmPciBaseProtocol; extern VOID *mPcdProtocol; extern VOID *mHobList; extern VOID *mDebugPrintProtocol; extern VOID *mSmmCommunicationProtocol; extern VOID *mSmmBase2Protocol; extern VOID *mSmmLockBoxProtocol; extern VOID *mPiSmmCommunicationProtocol; extern TXT_DEVICE_MEMORY_POLICY *mTxtDeviceMemoryPolicy; extern TXT_PLATFORM_POLICY *mTxtPlatformPolicy; extern UINT16 mApCount; extern UINT8 mApWakeUpVector; extern UINT32 mApicIdTable[MAX_CPUS]; extern BOOLEAN mBiosAcmCalled; extern UINT8 mBiosAcmErrorCount; extern TXT_DXE_PROTOCOL gTxtDxeProtocol; extern EFI_HANDLE gTxtDxeProtocolHandle; #endif