OpenCore
1.0.4
OpenCore Bootloader
|
#include <Uefi.h>
#include <Library/IoLib.h>
#include <Library/PrintLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/OcHeciLib.h>
#include <Library/TimerLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <IndustryStandard/PttPtpRegs.h>
#include <IndustryStandard/MkhiMsgs.h>
Go to the source code of this file.
Macros | |
#define | PTT_HCI_TIMEOUT_A 500 |
Timeout after 500 microseconds. | |
#define | PTT_HCI_POLLING_PERIOD 140 |
Poll register every 140 microseconds. | |
Functions | |
STATIC EFI_STATUS | MmioRead32Timeout (IN UINTN Address, IN UINT32 BitSet, IN UINT32 BitClear, IN UINT32 Period, IN UINT32 Timeout, OUT UINT32 *Value OPTIONAL) |
STATIC EFI_STATUS | CheckHeci (VOID) |
EFI_STATUS EFIAPI | UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Read Intel PTT TPM information.
Copyright (c) 2021, vit9696. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file TpmInfo.c.
#define PTT_HCI_POLLING_PERIOD 140 |
#define PTT_HCI_TIMEOUT_A 500 |
STATIC EFI_STATUS MmioRead32Timeout | ( | IN UINTN | Address, |
IN UINT32 | BitSet, | ||
IN UINT32 | BitClear, | ||
IN UINT32 | Period, | ||
IN UINT32 | Timeout, | ||
OUT UINT32 *Value | OPTIONAL ) |