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

SmbiosBoard

Index: 0066 | Size: 6432 bytes | Arch: x64 | Phase: DXE

Overview

Board-specific SMBIOS data provider DXE driver. Installs the SmbiosBoard protocol containing board identification bytes (type/revision sequence), a function dispatch table, and PCIe configuration space accessors. Determines board type from CMOS/RTC registers and chipset straps, and reads PCIe segment/bus configuration from PCD tokens.

Key Functions

  • GetBoardType -- Reads board identification from CMOS register 0x4B; falls back to chipset straps at 0xFDAF0490
  • WriteBoardConfig -- Programs board configuration flag to PCI config space
  • GetPciExpressBaseAddress -- Retrieves PCIe base address from PCD protocol
  • SmbiosBoardEntryPoint -- Initializes UEFI table pointers, locates protocols, installs SmbiosBoard protocol

Protocols / Dependencies

  • SmbiosBoard Protocol (board data + callbacks)
  • MM PCI Base Protocol (PciUsra)
  • PCD Protocol for PCIe base address and segment/bus table
  • CMOS/RTC I/O ports (0x70/0x71)

Platform

HR650X, board data table (24 bytes), 8 null-callback slots, PCIe config via PCD tokens 5 and 7