]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h
OvmfPkg: AcpiPlatformDxe: extract common entry point
[mirror_edk2.git] / OvmfPkg / AcpiPlatformDxe / AcpiPlatform.h
CommitLineData
522203de 1/** @file\r
2 Sample ACPI Platform Driver\r
3\r
4 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
96bbdbc8 13**/\r
522203de 14\r
15#ifndef _ACPI_PLATFORM_H_INCLUDED_\r
16#define _ACPI_PLATFORM_H_INCLUDED_\r
17\r
18#include <PiDxe.h>\r
19\r
20#include <Protocol/AcpiTable.h>\r
21#include <Protocol/FirmwareVolume2.h>\r
22\r
23#include <Library/BaseLib.h>\r
24#include <Library/UefiBootServicesTableLib.h>\r
25#include <Library/DebugLib.h>\r
26#include <Library/PcdLib.h>\r
27\r
28#include <IndustryStandard/Acpi.h>\r
29\r
30EFI_STATUS\r
31EFIAPI\r
32InstallAcpiTable (\r
33 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol,\r
34 IN VOID *AcpiTableBuffer,\r
35 IN UINTN AcpiTableBufferSize,\r
36 OUT UINTN *TableKey\r
37 );\r
38\r
39BOOLEAN\r
40QemuDetected (\r
41 VOID\r
42 );\r
43\r
44EFI_STATUS\r
45EFIAPI\r
46QemuInstallAcpiTable (\r
47 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol,\r
48 IN VOID *AcpiTableBuffer,\r
49 IN UINTN AcpiTableBufferSize,\r
50 OUT UINTN *TableKey\r
51 );\r
52\r
53BOOLEAN\r
54XenDetected (\r
55 VOID\r
56 );\r
57\r
58EFI_STATUS\r
59EFIAPI\r
377e758c 60InstallXenTables (\r
61 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol\r
522203de 62 );\r
63\r
96bbdbc8
LE
64EFI_STATUS\r
65EFIAPI\r
f186536b 66InstallQemuFwCfgTables (\r
96bbdbc8
LE
67 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol\r
68 );\r
f186536b 69\r
04951644
LE
70EFI_STATUS\r
71EFIAPI\r
72InstallAcpiTables (\r
73 IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable\r
74 );\r
75\r
522203de 76#endif\r
77\r