1 /** @file 2 Sample ACPI Platform Driver 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 #ifndef _ACPI_PLATFORM_H_INCLUDED_ 16 #define _ACPI_PLATFORM_H_INCLUDED_ 17 18 #include <PiDxe.h> 19 20 #include <Protocol/AcpiTable.h> 21 #include <Protocol/FirmwareVolume2.h> 22 23 #include <Library/BaseLib.h> 24 #include <Library/UefiBootServicesTableLib.h> 25 #include <Library/DebugLib.h> 26 #include <Library/PcdLib.h> 27 28 #include <IndustryStandard/Acpi.h> 29 30 EFI_STATUS 31 EFIAPI 32 InstallAcpiTable ( 33 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol, 34 IN VOID *AcpiTableBuffer, 35 IN UINTN AcpiTableBufferSize, 36 OUT UINTN *TableKey 37 ); 38 39 BOOLEAN 40 QemuDetected ( 41 VOID 42 ); 43 44 EFI_STATUS 45 EFIAPI 46 QemuInstallAcpiTable ( 47 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol, 48 IN VOID *AcpiTableBuffer, 49 IN UINTN AcpiTableBufferSize, 50 OUT UINTN *TableKey 51 ); 52 53 BOOLEAN 54 XenDetected ( 55 VOID 56 ); 57 58 EFI_STATUS 59 EFIAPI 60 InstallXenTables ( 61 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol 62 ); 63 64 EFI_STATUS 65 EFIAPI 66 InstallQemuFwCfgTables ( 67 IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol 68 ); 69 70 EFI_STATUS 71 EFIAPI 72 InstallAcpiTables ( 73 IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable 74 ); 75 76 #endif 77 78