summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorVarshitPandya <varshit.pandya@arm.com>2026-07-09 16:20:10 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-22 17:40:20 +0300
commitb551e8bb32fa096cb985a0fa599995160474c8e9 (patch)
treef31b4c13d689ac29214800d47d64bf1d27d0058a /MdeModulePkg/Library/PiDxeS3BootScriptLib
parent2bdb08ab006a178305ee9da3883a30dda41290ae (diff)
downloadedk2-b551e8bb32fa096cb985a0fa599995160474c8e9.tar.xz
DynamicTablesPkg: Smbios Additional Information (Type 40)
Add a DynamicTables SMBIOS generator for the Additional Information (Type 40) structure. SMBIOS Type 40 provides additional information for fields in other SMBIOS structures. Each Type 40 entry references an existing SMBIOS record by handle and offset, provides an optional entry string, and carries a supplemental field value. The generator consumes one or more top-level CM objects, each referencing a list of Additional Information entries. Each entry provides: - the CM object token of the referenced SMBIOS structure, - the referenced table generator ID, - the offset of the referenced field, - an optional entry string, - a token to a typed Additional Information Value object. Example platform CM object layout: CM_ARCH_COMMON_ADDITIONAL_INFORMATION AdditionalInformation[] = { { REFERENCE_TOKEN (AdditionalInformation[0]), REFERENCE_TOKEN (AdditionalInformationEntry[0]) } }; CM_ARCH_COMMON_ADDITIONAL_INFORMATION_ENTRY AdditionalInformationEntry[] = { { REFERENCE_TOKEN (MemoryDeviceInfo[0]), CREATE_STD_SMBIOS_TABLE_GEN_ID (EStdSmbiosTableIdType17), OFFSET_OF (SMBIOS_TABLE_TYPE17, MemoryType), "DIMM0 memory type", REFERENCE_TOKEN (AdditionalInformationValue[0]) } }; CM_ARCH_COMMON_ADDITIONAL_INFORMATION_VALUE AdditionalInformationValue[] = { { sizeof (UINT8), { MemoryTypeDram } } }; The generator resolves referenced SMBIOS handles using CM object tokens and table generator IDs. It validates the typed value objects, individual entry lengths, and aggregate formatted record size. The maximum accepted value length is controlled by PcdMaxAdditionalInformationValue. Build the variable-length Type 40 formatted area and append the entry strings to the SMBIOS string area. Signed-off-by: Varshit Pandya <varshit.pandya@arm.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions