]> git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.c
EmbeddedPkg: Replace BSD License with BSD+Patent License
[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 SPDX-License-Identifier: BSD-2-Clause-Patent
15 **/
16
17 #include <Base.h>
18
19 RETURN_STATUS
20 EFIAPI
21 PlatformHasAcpiInitialize (
22 VOID
23 )
24 {
25 //
26 // Do nothing, just imbue AcpiTableDxe with a protocol dependency on
27 // EDKII_PLATFORM_HAS_ACPI_GUID.
28 //
29 return RETURN_SUCCESS;
30 }