2 This driver installs SMBIOS information for OVMF on Xen
4 Copyright (C) 2021, Red Hat, Inc.
5 Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
6 Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
12 #include "SmbiosPlatformDxe.h"
13 #include "XenSmbiosPlatformDxe.h"
16 Installs SMBIOS information for OVMF on Xen
18 @param ImageHandle Module's image handle
19 @param SystemTable Pointer of EFI_SYSTEM_TABLE
21 @retval EFI_SUCCESS Smbios data successfully installed
22 @retval Other Smbios data was not installed
27 XenSmbiosTablePublishEntry (
28 IN EFI_HANDLE ImageHandle
,
29 IN EFI_SYSTEM_TABLE
*SystemTable
33 SMBIOS_TABLE_ENTRY_POINT
*EntryPointStructure
;
36 Status
= EFI_NOT_FOUND
;
38 // Add Xen SMBIOS data if found
40 EntryPointStructure
= GetXenSmbiosTables ();
41 if (EntryPointStructure
!= NULL
) {
42 SmbiosTables
= (UINT8
*)(UINTN
)EntryPointStructure
->TableAddress
;
43 if (SmbiosTables
!= NULL
) {
44 Status
= InstallAllStructures (SmbiosTables
);