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

TpmSmbiosDxe

Index: 0074 | Size: 13216 bytes | Arch: x64 | Phase: DXE

Overview

This DXE driver populates SMBIOS tables with TPM device information, supporting both TPM 1.2 and TPM 2.0 devices. It registers protocol notification callbacks for gEfiTrEEProtocolGuid and gEfiTcgProtocolGuid, collects TPM capability data (firmware version, vendor ID, characteristics) when the respective protocols become available, and populates the SMBIOS Type 43 table with the collected information.

Key Functions

  • ModuleEntryPoint -- Driver entry; initializes globals and registers protocol notification callbacks for TCG and TrEE protocols
  • TcgProtocolNotify -- Callback when TCG protocol becomes available; collects TPM 1.2 or 2.0 capability data
  • TrEEProtocolNotify -- Callback when TrEE protocol becomes available; collects TPM 2.0 capability data
  • PopulateSmbiosType43 -- Populates the SMBIOS Type 43 table with TPM device vendor ID, firmware version, and characteristics

Protocols / Dependencies

  • SMBIOS Protocol (gEfiSmbiosProtocolGuid)
  • TCG Protocol (gEfiTcgProtocolGuid -- TPM 1.2)
  • TrEE Protocol (gEfiTrEEProtocolGuid -- TPM 2.0)
  • TPM Device Instance GUID (gEfiTpmDeviceInstanceGuid)

Platform

HR650X (AMI BIOS, AmiModulePkg/TCG2/Common/TpmSmbios)