2 Find and extract SMBIOS data.
4 SPDX-License-Identifier: BSD-2-Clause-Patent
7 #include <Library/MemoryAllocationLib.h> // FreePool()
9 #include "SmbiosPlatformDxe.h"
12 Installs SMBIOS information for OVMF
14 @param ImageHandle Module's image handle
15 @param SystemTable Pointer of EFI_SYSTEM_TABLE
17 @retval EFI_SUCCESS Smbios data successfully installed
18 @retval Other Smbios data was not installed
23 SmbiosTablePublishEntry (
24 IN EFI_HANDLE ImageHandle
,
25 IN EFI_SYSTEM_TABLE
*SystemTable
31 Status
= EFI_NOT_FOUND
;
33 // Add QEMU SMBIOS data if found
35 SmbiosTables
= GetQemuSmbiosTables ();
36 if (SmbiosTables
!= NULL
) {
37 Status
= InstallAllStructures (SmbiosTables
);
38 FreePool (SmbiosTables
);