OpenCore
1.0.4
OpenCore Bootloader
|
#include <IndustryStandard/Acpi62.h>
#include <Protocol/SimpleFileSystem.h>
Go to the source code of this file.
Data Structures | |
struct | OC_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_TABLE |
struct | OC_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE |
struct | OC_ACPI_REGION |
struct | OC_ACPI_CONTEXT |
struct | OC_ACPI_PATCH |
Macros | |
#define | OC_ACPI_NAME_SIZE 4 |
Functions | |
EFI_STATUS | AcpiInitContext (IN OUT OC_ACPI_CONTEXT *Context) |
VOID | AcpiFreeContext (IN OUT OC_ACPI_CONTEXT *Context) |
EFI_STATUS | AcpiApplyContext (IN OUT OC_ACPI_CONTEXT *Context) |
EFI_STATUS | AcpiDeleteTable (IN OUT OC_ACPI_CONTEXT *Context, IN UINT32 Signature, IN UINT32 Length, IN UINT64 OemTableId, IN BOOLEAN All) |
EFI_STATUS | AcpiInsertTable (IN OUT OC_ACPI_CONTEXT *Context, IN CONST UINT8 *Data, IN UINT32 Length) |
VOID | AcpiNormalizeHeaders (IN OUT OC_ACPI_CONTEXT *Context) |
EFI_STATUS | AcpiApplyPatch (IN OUT OC_ACPI_CONTEXT *Context, IN OC_ACPI_PATCH *Patch) |
EFI_STATUS | AcpiLoadRegions (IN OUT OC_ACPI_CONTEXT *Context) |
VOID | AcpiRelocateRegions (IN OUT OC_ACPI_CONTEXT *Context) |
EFI_STATUS | AcpiFadtEnableReset (IN OUT OC_ACPI_CONTEXT *Context) |
VOID | AcpiResetLogoStatus (IN OUT OC_ACPI_CONTEXT *Context) |
VOID | AcpiSyncTableIds (IN OUT OC_ACPI_CONTEXT *Context) |
VOID | AcpiHandleHardwareSignature (IN OUT OC_ACPI_CONTEXT *Context, IN BOOLEAN Reset) |
EFI_STATUS | AcpiDumpTables (IN EFI_FILE_PROTOCOL *Root) |
EFI_STATUS | AcpiFindEntryInMemory (IN UINT8 *Table, IN CONST CHAR8 *PathString, IN UINT8 Entry, OUT UINT32 *Offset, IN UINT32 TableLength OPTIONAL) |
Copyright (C) 2016, The HermitCrabs Lab. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcAcpiLib.h.
#define OC_ACPI_NAME_SIZE 4 |
Definition at line 21 of file OcAcpiLib.h.
EFI_STATUS AcpiApplyContext | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Apply ACPI context to this system.
[in,out] | Context | ACPI library context. |
Definition at line 900 of file OcAcpiLib.c.
EFI_STATUS AcpiApplyPatch | ( | IN OUT OC_ACPI_CONTEXT * | Context, |
IN OC_ACPI_PATCH * | Patch ) |
Patch ACPI tables.
[in,out] | Context | ACPI library context. |
[in] | Patch | ACPI patch. |
Definition at line 1247 of file OcAcpiLib.c.
EFI_STATUS AcpiDeleteTable | ( | IN OUT OC_ACPI_CONTEXT * | Context, |
IN UINT32 | Signature, | ||
IN UINT32 | Length, | ||
IN UINT64 | OemTableId, | ||
IN BOOLEAN | All ) |
Delete one ACPI table.
[in,out] | Context | ACPI library context. |
[in] | Signature | Table signature or 0. |
[in] | Length | Table length or 0. |
[in] | OemTableId | Table Id or 0. |
[in] | All | Delete all tables or first matched. |
Definition at line 1015 of file OcAcpiLib.c.
EFI_STATUS AcpiDumpTables | ( | IN EFI_FILE_PROTOCOL * | Root | ) |
Dump ACPI tables to the specified directory.
[in] | Root | Directory to write tables. |
Definition at line 102 of file AcpiDump.c.
EFI_STATUS AcpiFadtEnableReset | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Upgrade FADT to support reset register needed on very old legacy hardware.
[in,out] | Context | ACPI library context. |
Definition at line 1510 of file OcAcpiLib.c.
EFI_STATUS AcpiFindEntryInMemory | ( | IN UINT8 * | Table, |
IN CONST CHAR8 * | PathString, | ||
IN UINT8 | Entry, | ||
OUT UINT32 * | Offset, | ||
IN UINT32 TableLength | OPTIONAL ) |
Finds offset of required entry in ACPI table in case it exists.
[in] | Table | Pointer to start of ACPI table. |
[in] | PathString | Path to entry which must be found. |
[in] | Entry | Number of entry which must be found. |
[out] | Offset | Offset of the entry if it was found. |
[out] | TableLength | Length of ACPI table. |
EFI_SUCCESS | Required entry was found. |
EFI_NOT_FOUND | Required entry was not found. |
EFI_DEVICE_ERROR | Error occured during parsing ACPI table. |
EFI_OUT_OF_RESOURCES | Nesting limit has been reached. |
EFI_INVALID_PARAMETER | Got wrong path to the entry. |
Definition at line 2021 of file AcpiParser.c.
VOID AcpiFreeContext | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Free ACPI context dynamic resources.
[in,out] | Context | ACPI library context. |
Definition at line 884 of file OcAcpiLib.c.
VOID AcpiHandleHardwareSignature | ( | IN OUT OC_ACPI_CONTEXT * | Context, |
IN BOOLEAN | Reset ) |
Log and reset FACS hardware signature.
[in,out] | Context | ACPI library context. |
[in] | Reset | Perform reset. |
Definition at line 1700 of file OcAcpiLib.c.
EFI_STATUS AcpiInitContext | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Find ACPI System Tables for later table configuration.
[in,out] | Context | ACPI library context. |
Definition at line 738 of file OcAcpiLib.c.
EFI_STATUS AcpiInsertTable | ( | IN OUT OC_ACPI_CONTEXT * | Context, |
IN CONST UINT8 * | Data, | ||
IN UINT32 | Length ) |
Install one ACPI table. For DSDT this performs table replacement.
[in,out] | Context | ACPI library context. |
[in] | Data | Table data. |
[in] | Length | Table length. |
Definition at line 1082 of file OcAcpiLib.c.
EFI_STATUS AcpiLoadRegions | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Try to load ACPI regions.
[in,out] | Context | ACPI library context. |
Definition at line 1421 of file OcAcpiLib.c.
VOID AcpiNormalizeHeaders | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Normalise ACPI headers to contain 7-bit ASCII.
[in,out] | Context | ACPI library context. |
Definition at line 1164 of file OcAcpiLib.c.
VOID AcpiRelocateRegions | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Attempt to relocate ACPI regions based on loaded ones.
[in,out] | Context | ACPI library context. |
Definition at line 1465 of file OcAcpiLib.c.
VOID AcpiResetLogoStatus | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Reset BGRT Displayed status.
[in,out] | Context | ACPI library context. |
Definition at line 1596 of file OcAcpiLib.c.
VOID AcpiSyncTableIds | ( | IN OUT OC_ACPI_CONTEXT * | Context | ) |
Sync ACPI table identifiers with SLIC.
[in,out] | Context | ACPI library context. |
Definition at line 1640 of file OcAcpiLib.c.