mirror of https://github.com/acidanthera/audk.git
OvmfPkg/SmbiosPlatformDxe: split GetXenSmbiosTables() decl. to new header
Move the declaration of the GetXenSmbiosTables() function to a new header file called "XenSmbiosPlatformDxe.h". (The only declaration that remains in "SmbiosPlatformDxe.h" for now is that of GetQemuSmbiosTables().) Modify the pattern in "Maintainers.txt" so that the new file be covered in the "OvmfPkg: Xen-related modules" section. This patch is best viewed with "git show --no-renames". Cc: Andrew Fish <afish@apple.com> Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien@xen.org> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210526201446.12554-40-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
This commit is contained in:
parent
4db374562f
commit
a8ab14424e
|
@ -493,7 +493,7 @@ F: OvmfPkg/Library/XenPlatformLib/
|
|||
F: OvmfPkg/Library/XenRealTimeClockLib/
|
||||
F: OvmfPkg/OvmfXen.*
|
||||
F: OvmfPkg/OvmfXenElfHeaderGenerator.c
|
||||
F: OvmfPkg/SmbiosPlatformDxe/*Xen.c
|
||||
F: OvmfPkg/SmbiosPlatformDxe/*Xen*
|
||||
F: OvmfPkg/XenAcpiPlatformDxe/
|
||||
F: OvmfPkg/XenBusDxe/
|
||||
F: OvmfPkg/XenIoPciDxe/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
#include "SmbiosPlatformDxe.h"
|
||||
#include "XenSmbiosPlatformDxe.h"
|
||||
|
||||
/**
|
||||
Locates the Xen SMBIOS data if it exists
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <Protocol/Smbios.h> // EFI_SMBIOS_PROTOCOL
|
||||
|
||||
#include "SmbiosPlatformDxe.h"
|
||||
#include "XenSmbiosPlatformDxe.h"
|
||||
|
||||
#define TYPE0_STRINGS \
|
||||
"EFI Development Kit II / OVMF\0" /* Vendor */ \
|
||||
|
|
|
@ -11,20 +11,6 @@
|
|||
#ifndef SMBIOS_PLATFORM_DXE_H_
|
||||
#define SMBIOS_PLATFORM_DXE_H_
|
||||
|
||||
#include <IndustryStandard/SmBios.h> // SMBIOS_TABLE_ENTRY_POINT
|
||||
|
||||
/**
|
||||
Locates the Xen SMBIOS data if it exists
|
||||
|
||||
@return SMBIOS_TABLE_ENTRY_POINT Address of Xen SMBIOS data
|
||||
|
||||
**/
|
||||
SMBIOS_TABLE_ENTRY_POINT *
|
||||
GetXenSmbiosTables (
|
||||
VOID
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Locates and extracts the QEMU SMBIOS table data if present in fw_cfg
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
Qemu.c
|
||||
SmbiosPlatformDxe.c
|
||||
SmbiosPlatformDxe.h
|
||||
XenSmbiosPlatformDxe.h
|
||||
|
||||
[Sources.IA32, Sources.X64]
|
||||
X86Xen.c
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Library/HobLib.h> // GetFirstGuidHob()
|
||||
#include <Pi/PiHob.h> // EFI_HOB_GUID_TYPE
|
||||
|
||||
#include "SmbiosPlatformDxe.h"
|
||||
#include "XenSmbiosPlatformDxe.h"
|
||||
|
||||
#define XEN_SMBIOS_PHYSICAL_ADDRESS 0x000EB000
|
||||
#define XEN_SMBIOS_PHYSICAL_END 0x000F0000
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
/** @file
|
||||
This driver installs SMBIOS information for OVMF on Xen
|
||||
|
||||
Copyright (C) 2021, Red Hat, Inc.
|
||||
Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
|
||||
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#ifndef XEN_SMBIOS_PLATFORM_DXE_H_
|
||||
#define XEN_SMBIOS_PLATFORM_DXE_H_
|
||||
|
||||
#include <IndustryStandard/SmBios.h> // SMBIOS_TABLE_ENTRY_POINT
|
||||
|
||||
/**
|
||||
Locates the Xen SMBIOS data if it exists
|
||||
|
||||
@return SMBIOS_TABLE_ENTRY_POINT Address of Xen SMBIOS data
|
||||
|
||||
**/
|
||||
SMBIOS_TABLE_ENTRY_POINT *
|
||||
GetXenSmbiosTables (
|
||||
VOID
|
||||
);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue