]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AcpiPlatformDxe/Qemu.c
OvmfPkg/AcpiPlatformDxe: Detect QEMU & Xen
[mirror_edk2.git] / OvmfPkg / AcpiPlatformDxe / Qemu.c
1 /** @file
2 OVMF ACPI QEMU support
3
4 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "AcpiPlatform.h"
16 #include <Library/QemuFwCfgLib.h>
17
18
19 BOOLEAN
20 QemuDetected (
21 VOID
22 )
23 {
24 if (!QemuFwCfgIsAvailable ()) {
25 return FALSE;
26 }
27
28 return TRUE;
29 }
30
31
32 EFI_STATUS
33 EFIAPI
34 QemuInstallAcpiTable (
35 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol,
36 IN VOID *AcpiTableBuffer,
37 IN UINTN AcpiTableBufferSize,
38 OUT UINTN *TableKey
39 )
40 {
41 return InstallAcpiTable(
42 AcpiProtocol,
43 AcpiTableBuffer,
44 AcpiTableBufferSize,
45 TableKey
46 );
47 }
48