TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeAcpiPlatformLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI GetAcpiRsdpFromMemory (IN UINTN StartAddress, IN UINTN EndAddress, OUT EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER **RsdpPtr)
 
EFI_STATUS EFIAPI InstallAcpiTablesFromRsdp (IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol, IN EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *Rsdp)
 

Detailed Description

OVMF ACPI support

Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
Copyright (c) 2012, Bei Guan gbtju.nosp@m.85@g.nosp@m.mail..nosp@m.com

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeAcpiPlatformLib.c.

Function Documentation

◆ GetAcpiRsdpFromMemory()

EFI_STATUS EFIAPI GetAcpiRsdpFromMemory ( IN UINTN  StartAddress,
IN UINTN  EndAddress,
OUT EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER **  RsdpPtr 
)

Searches and returns the address of the ACPI Root System Description Pointer (RSDP) in system memory.

Parameters
StartAddressStart address of search range.
EndAddressEnd address of search range.
RsdpPtrReturn pointer to RSDP.
Return values
EFI_SUCCESSRSDP successfully found.
EFI_NOT_FOUNDCouldn't find RSDP.
EFI_ABORTEDInvalid RSDP found.

Definition at line 18 of file DxeAcpiPlatformLib.c.

◆ InstallAcpiTablesFromRsdp()

EFI_STATUS EFIAPI InstallAcpiTablesFromRsdp ( IN EFI_ACPI_TABLE_PROTOCOL AcpiProtocol,
IN EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER Rsdp 
)

Get Acpi tables from the RSDP structure. And installs ACPI tables into the RSDT/XSDT using InstallAcpiTable. Some signature of the installed ACPI tables are: FACP, APIC, HPET, WAET, SSDT, FACS, DSDT.

Parameters
AcpiProtocolProtocol instance pointer.
Returns
EFI_SUCCESS The table was successfully inserted.
EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL, TableHandle is NULL, or AcpiTableBufferSize and the size field embedded in the ACPI table pointed to by AcpiTableBuffer are not in sync.
EFI_OUT_OF_RESOURCES Insufficient resources exist to complete the request.

Definition at line 71 of file DxeAcpiPlatformLib.c.