Newer
Older
AMI-Aptio-BIOS-Reversed / TpmNvmeSupport / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Init

TpmNvmeSupport

Index: 0075 | Size: 5056 bytes | Arch: x64 | Phase: DXE

Overview

This DXE driver detects NVMe device presence on TPM-connected NVMe controllers and reports the result through the AMI BIOS Setup variable. It integrates with the AMI TCG PPI mechanism and provides a periodic retry mechanism via the UEFI timer services if no NVMe device is found on the first probe. The driver enumerates all handles with the NVMe Storage protocol and updates the Setup variable with a presence flag.

Key Functions

  • TpmNvmeSupportEntry -- Entry point; initializes UEFI globals, locates HOB list and PCD protocol, maps PCI Express MMIO range
  • TpmNvmeSupportDxeEntry -- Checks AMI Setup "TpmNvmeSupport" option; if enabled, clears AMITCGPPIVAR and calls CheckNvmeDevicePresence
  • CheckNvmeDevicePresence -- Enumerates all handles with NVMe Storage protocol, probes each for a live device, updates Setup variable
  • PeriodicTimerCallback -- Periodic timer callback to retry NVMe device presence check if no device found initially

Protocols / Dependencies

  • AMI NVMe Storage Protocol (AMI_NVME_STORAGE_PROTOCOL_GUID)
  • AMI TCG PPI Variable (AMI_TCG_PPI_VARIABLE_GUID)
  • AMI Setup Variable (AMI_SETUP_VARIABLE_GUID)
  • Debug Mode Protocol (DEBUG_MODE_PROTOCOL_GUID)
  • PCD Protocol

Platform

HR650X (AMI BIOS, American Megatrends International)