diff --git a/OvmfPkg/SmbiosPlatformDxe/ArmXen.c b/OvmfPkg/SmbiosPlatformDxe/ArmXen.c new file mode 100644 index 0000000000..538cbc26f0 --- /dev/null +++ b/OvmfPkg/SmbiosPlatformDxe/ArmXen.c @@ -0,0 +1,34 @@ +/** @file + Detect Xen SMBIOS data on ARM / AARCH64. + + Copyright (C) 2015, Red Hat, Inc. + Copyright (c) 2011, Bei Guan + Copyright (c) 2011, Intel Corporation. All rights reserved.
+ + This program and the accompanying materials are licensed and made available + under the terms and conditions of the BSD License which accompanies this + distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT + WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +**/ + +#include "SmbiosPlatformDxe.h" + +/** + Locates the Xen SMBIOS data if it exists + + @return SMBIOS_TABLE_ENTRY_POINT Address of Xen SMBIOS data + +**/ +SMBIOS_TABLE_ENTRY_POINT * +GetXenSmbiosTables ( + VOID + ) +{ + // + // Not implemented yet. + // + return NULL; +} diff --git a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf index 6596392095..3b90aac438 100644 --- a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf +++ b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf @@ -25,15 +25,20 @@ # # The following information is for reference only and not required by the build tools. # -# VALID_ARCHITECTURES = IA32 X64 IPF EBC +# VALID_ARCHITECTURES = IA32 X64 IPF EBC ARM AARCH64 # [Sources] SmbiosPlatformDxe.h SmbiosPlatformDxe.c - Xen.c Qemu.c +[Sources.IA32, Sources.X64] + X86Xen.c + +[Sources.ARM, Sources.AARCH64] + ArmXen.c + [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec diff --git a/OvmfPkg/SmbiosPlatformDxe/Xen.c b/OvmfPkg/SmbiosPlatformDxe/X86Xen.c similarity index 100% rename from OvmfPkg/SmbiosPlatformDxe/Xen.c rename to OvmfPkg/SmbiosPlatformDxe/X86Xen.c