]>
Commit | Line | Data |
---|---|---|
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 | |
30 | EFI_STATUS\r | |
31 | EFIAPI\r | |
32 | InstallAcpiTable (\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 | |
39 | BOOLEAN\r | |
40 | QemuDetected (\r | |
41 | VOID\r | |
42 | );\r | |
43 | \r | |
44 | EFI_STATUS\r | |
45 | EFIAPI\r | |
46 | QemuInstallAcpiTable (\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 | |
53 | BOOLEAN\r | |
54 | XenDetected (\r | |
55 | VOID\r | |
56 | );\r | |
57 | \r | |
58 | EFI_STATUS\r | |
59 | EFIAPI\r | |
377e758c | 60 | InstallXenTables (\r |
61 | IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol\r | |
522203de | 62 | );\r |
63 | \r | |
96bbdbc8 LE |
64 | EFI_STATUS\r |
65 | EFIAPI\r | |
f186536b | 66 | InstallQemuFwCfgTables (\r |
96bbdbc8 LE |
67 | IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol\r |
68 | );\r | |
f186536b | 69 | \r |
04951644 LE |
70 | EFI_STATUS\r |
71 | EFIAPI\r | |
72 | InstallAcpiTables (\r | |
73 | IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable\r | |
74 | );\r | |
75 | \r | |
522203de | 76 | #endif\r |
77 | \r |