Newer
Older
AMI-Aptio-BIOS-Reversed / AmiModulePkg / TCG2 / Common / TcgDxePlatform / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Full restructure

TcgDxeplatform

Index: 0070 | Size: 5248 bytes | Arch: x64 | Phase: DXE

Overview

This DXE driver initializes the TCG (Trusted Computing Group) platform protocol for the HR650X platform. It retrieves the TCG platform protocol interface via HOB list and LocateProtocol, then dispatches callbacks for PPI request processing, TCG setup configuration, PCI option ROM measurement, and Ready-to-Boot notification. The driver also performs PCI Express MMIO base configuration and a short TSC-based spin-wait delay during initialization.

Key Functions

  • ModuleEntryPoint -- Driver entry point; initializes globals, locates HOB list and PCD protocol, configures PCI Express registers, and dispatches TCG platform callbacks
  • GetNextGuidHob -- Walks the HOB list backward to find a specific GUID extension HOB containing the TCG platform protocol pointer
  • TcgDxePlatformDispatch -- Dispatches the four main TCG callbacks: Initialize, ProcessPpiRequest, ProcessTcgSetup, MeasurePciOptionRoms, and ReadyToBootCallback

Protocols / Dependencies

  • TCG Platform Protocol (GUID: {8C939604-0700-4415-9D62-1161DB8164A6})
  • PCD Protocol (for PCI Express MMIO base address, PCD token 5)
  • EFI DxeServicesTable (for HOB list retrieval)
  • REPORT_STATUS_CODE_HANDLER_PROTOCOL

Platform

HR650X (AMI BIOS, Intel)