]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenAcpiPlatformDxe/AcpiPlatform.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / XenAcpiPlatformDxe / AcpiPlatform.c
1 /** @file
2 OVMF ACPI Platform Driver for Xen guests
3
4 Copyright (C) 2021, Red Hat, Inc.
5 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include <Library/XenPlatformLib.h> // XenDetected()
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
33 if (XenDetected ()) {
34 Status = InstallXenTables (AcpiTable);
35 } else {
36 Status = EFI_UNSUPPORTED;
37 }
38
39 return Status;
40 }