]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatform.c
OvmfPkg/build.sh: Use XCODE5 for newer OS X releases
[mirror_edk2.git] / OvmfPkg / AcpiPlatformDxe / QemuFwCfgAcpiPlatform.c
CommitLineData
48b85089
JJ
1/** @file\r
2 OVMF ACPI Platform Driver using QEMU's fw-cfg interface\r
3\r
4 Copyright (c) 2008 - 2014, 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
13**/\r
14\r
15#include "AcpiPlatform.h"\r
16\r
17/**\r
18 Entrypoint of Acpi Platform driver.\r
19\r
20 @param ImageHandle\r
21 @param SystemTable\r
22\r
23 @return EFI_SUCCESS\r
24 @return EFI_LOAD_ERROR\r
25 @return EFI_OUT_OF_RESOURCES\r
26\r
27**/\r
28EFI_STATUS\r
29EFIAPI\r
30QemuFwCfgAcpiPlatformEntryPoint (\r
31 IN EFI_HANDLE ImageHandle,\r
32 IN EFI_SYSTEM_TABLE *SystemTable\r
33 )\r
34{\r
35 EFI_STATUS Status;\r
36 EFI_ACPI_TABLE_PROTOCOL *AcpiTable;\r
37\r
38 //\r
39 // Find the AcpiTable protocol\r
40 //\r
41 Status = gBS->LocateProtocol (\r
42 &gEfiAcpiTableProtocolGuid,\r
43 NULL,\r
44 (VOID**)&AcpiTable\r
45 );\r
46 if (EFI_ERROR (Status)) {\r
47 return EFI_ABORTED;\r
48 }\r
49\r
50 Status = InstallAllQemuLinkedTables (AcpiTable);\r
51 return Status;\r
52}\r