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