|
TianoCore EDK2 master
|
#include <PiDxe.h>#include <Protocol/AcpiTable.h>#include <Guid/Acpi.h>#include <Protocol/AcpiSystemDescriptionTable.h>#include <Library/BaseLib.h>#include <Library/DebugLib.h>#include <Library/UefiLib.h>#include <Library/BaseMemoryLib.h>#include <Library/UefiDriverEntryPoint.h>#include <Library/MemoryAllocationLib.h>#include <Library/UefiBootServicesTableLib.h>#include <Library/PcdLib.h>#include <Library/HobLib.h>#include <UniversalPayload/AcpiTable.h>#include <IndustryStandard/Acpi.h>#include "AcpiSdt.h"Go to the source code of this file.
Data Structures | |
| struct | EFI_ACPI_TABLE_LIST |
| struct | EFI_ACPI_TABLE_INSTANCE |
| struct | ACPI_SILICON_HOB |
Macros | |
| #define | ACPI_TABLE_VERSION_GTE_2_0 |
| #define | EFI_ACPI_TABLE_LIST_SIGNATURE SIGNATURE_32 ('E', 'A', 'T', 'L') |
| #define | EFI_ACPI_TABLE_LIST_FROM_LINK(_link) CR (_link, EFI_ACPI_TABLE_LIST, Link, EFI_ACPI_TABLE_LIST_SIGNATURE) |
| #define | EFI_ACPI_MAX_NUM_TABLES 20 |
| #define | EFI_ACPI_TABLE_SIGNATURE SIGNATURE_32 ('S', 'T', 'A', 'E') |
| #define | EFI_ACPI_TABLE_INSTANCE_FROM_THIS(a) |
Functions | |
| EFI_STATUS | AcpiTableAcpiTableConstructor (EFI_ACPI_TABLE_INSTANCE *AcpiTableInstance) |
| EFI_STATUS EFIAPI | InitializeAcpiTableDxe (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
| EFI_STATUS | FindTableByHandle (IN UINTN Handle, IN LIST_ENTRY *TableList, OUT EFI_ACPI_TABLE_LIST **Table) |
| EFI_STATUS | AcpiPlatformChecksum (IN VOID *Buffer, IN UINTN Size, IN UINTN ChecksumOffset) |
| VOID | SdtNotifyAcpiList (IN EFI_ACPI_TABLE_INSTANCE *AcpiTableInstance, IN EFI_ACPI_TABLE_VERSION Version, IN UINTN Handle) |
| VOID | SdtAcpiTableAcpiSdtConstructor (IN EFI_ACPI_TABLE_INSTANCE *AcpiTableInstance) |
| EFI_STATUS | SdtGetAcpiTable (IN EFI_ACPI_TABLE_INSTANCE *AcpiTableInstance, IN UINTN Index, OUT EFI_ACPI_SDT_HEADER **Table, OUT EFI_ACPI_TABLE_VERSION *Version, OUT UINTN *TableKey) |
Variables | |
| EFI_HANDLE | mHandle |
| EFI_ACPI_TABLE_INSTANCE * | mPrivateData |
ACPI Table Protocol Driver
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AcpiTable.h.
| #define ACPI_TABLE_VERSION_GTE_2_0 |
Definition at line 39 of file AcpiTable.h.
| #define EFI_ACPI_MAX_NUM_TABLES 20 |
Definition at line 84 of file AcpiTable.h.
| #define EFI_ACPI_TABLE_INSTANCE_FROM_THIS | ( | a | ) |
Definition at line 122 of file AcpiTable.h.
| #define EFI_ACPI_TABLE_LIST_FROM_LINK | ( | _link | ) | CR (_link, EFI_ACPI_TABLE_LIST, Link, EFI_ACPI_TABLE_LIST_SIGNATURE) |
Definition at line 79 of file AcpiTable.h.
| #define EFI_ACPI_TABLE_LIST_SIGNATURE SIGNATURE_32 ('E', 'A', 'T', 'L') |
Definition at line 50 of file AcpiTable.h.
| #define EFI_ACPI_TABLE_SIGNATURE SIGNATURE_32 ('S', 'T', 'A', 'E') |
Definition at line 92 of file AcpiTable.h.
This function calculates and updates an UINT8 checksum.
| [in] | Buffer | Pointer to buffer to checksum |
| [in] | Size | Number of bytes to checksum |
| [in] | ChecksumOffset | Offset to place the checksum result in |
| EFI_SUCCESS | The function completed successfully. |
This function calculates and updates an UINT8 checksum.
| Buffer | Pointer to buffer to checksum |
| Size | Number of bytes to checksum |
| ChecksumOffset | Offset to place the checksum result in |
Definition at line 1666 of file AcpiTableProtocol.c.
| EFI_STATUS AcpiTableAcpiTableConstructor | ( | EFI_ACPI_TABLE_INSTANCE * | AcpiTableInstance | ) |
Constructor for the ACPI support protocol. Initializes instance data.
| AcpiTableInstance | Instance to construct |
Constructor for the ACPI table protocol. Initializes instance data.
| AcpiTableInstance | Instance to construct |
Definition at line 2062 of file AcpiTableProtocol.c.
| EFI_STATUS FindTableByHandle | ( | IN UINTN | Handle, |
| IN LIST_ENTRY * | TableList, | ||
| OUT EFI_ACPI_TABLE_LIST ** | Table | ||
| ) |
This function finds the table specified by the handle and returns a pointer to it. If the handle is not found, EFI_NOT_FOUND is returned and the contents of Table are undefined.
| [in] | Handle | Table to find. |
| [in] | TableList | Table list to search |
| [out] | Table | Pointer to table found. |
| EFI_SUCCESS | The function completed successfully. |
| EFI_NOT_FOUND | No table found matching the handle specified. |
This function finds the table specified by the handle and returns a pointer to it. If the handle is not found, EFI_NOT_FOUND is returned and the contents of Table are undefined.
| Handle | Table to find. |
| TableList | Table list to search |
| Table | Pointer to table found. |
Definition at line 1168 of file AcpiTableProtocol.c.
| EFI_STATUS EFIAPI InitializeAcpiTableDxe | ( | IN EFI_HANDLE | ImageHandle, |
| IN EFI_SYSTEM_TABLE * | SystemTable | ||
| ) |
Entry point of the ACPI table driver. Creates and initializes an instance of the ACPI Table Protocol and installs it on a new handle.
| ImageHandle | A handle for the image that is initializing this driver |
| SystemTable | A pointer to the EFI system table |
Entry point of the ACPI table driver. Creates and initializes an instance of the ACPI Table Protocol and installs it on a new handle.
| ImageHandle | A handle for the image that is initializing this driver. |
| SystemTable | A pointer to the EFI system table. |
Definition at line 35 of file AcpiTable.c.
| VOID SdtAcpiTableAcpiSdtConstructor | ( | IN EFI_ACPI_TABLE_INSTANCE * | AcpiTableInstance | ) |
| EFI_STATUS SdtGetAcpiTable | ( | IN EFI_ACPI_TABLE_INSTANCE * | AcpiTableInstance, |
| IN UINTN | Index, | ||
| OUT EFI_ACPI_SDT_HEADER ** | Table, | ||
| OUT EFI_ACPI_TABLE_VERSION * | Version, | ||
| OUT UINTN * | TableKey | ||
| ) |
Returns a requested ACPI table.
The following structures are not considered elements in the list of ACPI tables:
| [in] | AcpiTableInstance | ACPI table Instance. |
| [in] | Index | The zero-based index of the table to retrieve. |
| [out] | Table | Pointer for returning the table buffer. |
| [out] | Version | On return, updated with the ACPI versions to which this table belongs. Type EFI_ACPI_TABLE_VERSION is defined in "Related Definitions" in the EFI_ACPI_SDT_PROTOCOL. |
| [out] | TableKey | On return, points to the table key for the specified ACPI system definition table. This is identical to the table key used in the EFI_ACPI_TABLE_PROTOCOL. The TableKey can be passed to EFI_ACPI_TABLE_PROTOCOL.UninstallAcpiTable() to uninstall the table. |
| EFI_SUCCESS | The function completed successfully. |
| EFI_NOT_FOUND | The requested index is too large and a table was not found. |
| VOID SdtNotifyAcpiList | ( | IN EFI_ACPI_TABLE_INSTANCE * | AcpiTableInstance, |
| IN EFI_ACPI_TABLE_VERSION | Version, | ||
| IN UINTN | Handle | ||
| ) |
|
extern |
Handle for the Capsule Update Policy Protocol
Definition at line 26 of file ArmPciCpuIo2Dxe.c.
|
extern |
Definition at line 12 of file FatLiteApi.c.