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