]> git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.c
EmbeddedPkg: introduce PlatformHasAcpiLib
[mirror_edk2.git] / EmbeddedPkg / Library / PlatformHasAcpiLib / PlatformHasAcpiLib.c
1 /** @file
2 A hook-in library for MdeModulePkg/Universal/Acpi/AcpiTableDxe.
3
4 Plugging this library instance into AcpiTableDxe makes
5 EFI_ACPI_TABLE_PROTOCOL and (if enabled) EFI_ACPI_SDT_PROTOCOL depend on the
6 platform's dynamic decision whether to expose an ACPI-based hardware
7 description to the operating system.
8
9 Universal and platform specific DXE drivers that produce ACPI tables depend
10 on EFI_ACPI_TABLE_PROTOCOL / EFI_ACPI_SDT_PROTOCOL in turn.
11
12 Copyright (C) 2017, Red Hat, Inc.
13
14 This program and the accompanying materials are licensed and made available
15 under the terms and conditions of the BSD License which accompanies this
16 distribution. The full text of the license may be found at
17 http://opensource.org/licenses/bsd-license.php
18
19 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
20 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 **/
22
23 #include <Base.h>
24
25 RETURN_STATUS
26 EFIAPI
27 PlatformHasAcpiInitialize (
28 VOID
29 )
30 {
31 //
32 // Do nothing, just imbue AcpiTableDxe with a protocol dependency on
33 // EDKII_PLATFORM_HAS_ACPI_GUID.
34 //
35 return RETURN_SUCCESS;
36 }