On 02/02/2022 09:02, Sean Rhodes wrote:
Not quite sure how to implement that, are there any existing use cases that I can look at?

From the way that your patch uses SMBIOS data, I'm assuming that your use case involves a pre-existing SMBIOS table structure that is constructed by something (e.g. coreboot) before UEFI starts up, and that you want to extract information from this table.

If this assumption is correct, then the use case looks similar to the way that OvmfPkg handles a pre-existing SMBIOS table constructed by the hypervisor: the binary table is minimally parsed and all structures are handed over to UEFI via EFI_SMBIOS_PROTOCOL.Add(). This means that all structures from the pre-existing SMBIOS table are available to any UEFI SMBIOS consumers.

See, for example OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c.

HTH,

Michael


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86335): https://edk2.groups.io/g/devel/message/86335
Mute This Topic: https://groups.io/mt/88828789/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to