]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / AcpiPlatformDxe / AcpiPlatform.c
1 /** @file
2 OVMF ACPI Platform Driver
3
4 Copyright (C) 2015, Red Hat, Inc.
5 Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9
10 #include <OvmfPlatforms.h> // CLOUDHV_DEVICE_ID
11
12 #include "AcpiPlatform.h"
13
14 /**
15 Effective entrypoint of Acpi Platform driver.
16
17 @param ImageHandle
18 @param SystemTable
19
20 @return EFI_SUCCESS
21 @return EFI_LOAD_ERROR
22 @return EFI_OUT_OF_RESOURCES
23
24 **/
25 EFI_STATUS
26 EFIAPI
27 InstallAcpiTables (
28 IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable
29 )
30 {
31 EFI_STATUS Status;
32 UINT16 HostBridgeDevId;
33
34 HostBridgeDevId = PcdGet16 (PcdOvmfHostBridgePciDevId);
35 if (HostBridgeDevId == CLOUDHV_DEVICE_ID) {
36 Status = InstallCloudHvTables (AcpiTable);
37 } else {
38 Status = InstallQemuFwCfgTables (AcpiTable);
39 }
40
41 return Status;
42 }