mirror of https://github.com/acidanthera/audk.git
OvmfPkg: move QemuFwCfgAcpi into AcpiPlatformLib
This makes the InstallQemuFwcfgTables function reusable by bhyve. Signed-off-by: Corvin Köhne <corvink@FreeBSD.org> Acked-by: Peter Grehan <grehan@freebsd.org>
This commit is contained in:
parent
0f612c1443
commit
5a118a61d1
|
@ -9,6 +9,9 @@
|
|||
|
||||
#include <OvmfPlatforms.h> // CLOUDHV_DEVICE_ID
|
||||
#include <ConfidentialComputingGuestAttr.h>
|
||||
|
||||
#include <Library/AcpiPlatformLib.h>
|
||||
|
||||
#include "AcpiPlatform.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,12 +23,6 @@ InstallCloudHvTables (
|
|||
IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
InstallQemuFwCfgTables (
|
||||
IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
InstallAcpiTables (
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
AcpiPlatform.h
|
||||
CloudHvAcpi.c
|
||||
EntryPoint.c
|
||||
QemuFwCfgAcpi.c
|
||||
|
||||
[Packages]
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
|
@ -41,12 +40,10 @@
|
|||
QemuFwCfgLib
|
||||
UefiDriverEntryPoint
|
||||
HobLib
|
||||
TpmMeasurementLib
|
||||
|
||||
[Protocols]
|
||||
gEfiAcpiTableProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
gEfiPciIoProtocolGuid # PROTOCOL SOMETIMES_CONSUMED
|
||||
gQemuAcpiTableNotifyProtocolGuid # PROTOCOL PRODUCES
|
||||
|
||||
[Guids]
|
||||
gRootBridgesConnectedEventGroupGuid
|
||||
|
|
|
@ -59,6 +59,12 @@ InstallAcpiTablesFromRsdp (
|
|||
IN EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *Rsdp
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
InstallQemuFwCfgTables (
|
||||
IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol
|
||||
);
|
||||
|
||||
VOID
|
||||
EnablePciDecoding (
|
||||
OUT ORIGINAL_ATTRIBUTES **OriginalAttributes,
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
BootScript.c
|
||||
DxeAcpiPlatformLib.c
|
||||
PciDecoding.c
|
||||
QemuFwCfgAcpi.c
|
||||
|
||||
[Packages]
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
|
@ -30,6 +31,10 @@
|
|||
PcdLib
|
||||
QemuFwCfgS3Lib
|
||||
UefiBootServicesTableLib
|
||||
TpmMeasurementLib
|
||||
|
||||
[Protocols]
|
||||
gQemuAcpiTableNotifyProtocolGuid # PROTOCOL PRODUCES
|
||||
|
||||
[Pcd]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#include <Library/UefiBootServicesTableLib.h> // gBS
|
||||
#include <Library/TpmMeasurementLib.h>
|
||||
|
||||
#include "AcpiPlatform.h"
|
||||
|
||||
//
|
||||
// The user structure for the ordered collection that will track the fw_cfg
|
||||
// blobs under processing.
|
Loading…
Reference in New Issue