RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Functions | Variables

ACPI implementation. More...

#include <assert.h>
#include <acpi/acpi.h>
#include <rtems/sysinit.h>

Functions

bool acpi_tables_initialize (void)
 Initializes the ACPICA Table Manager. Requires dynamic memory.
 
void acpi_walk_subtables (ACPI_TABLE_HEADER *table, size_t size_of_header, void(*handler)(ACPI_SUBTABLE_HEADER *))
 Walks through the subtables of an ACPI table.
 
 RTEMS_SYSINIT_ITEM (initialize_acpi, RTEMS_SYSINIT_DEVICE_DRIVERS, RTEMS_SYSINIT_ORDER_MIDDLE)
 

Variables

uint64_t acpi_rsdp_addr = 0
 

Detailed Description

ACPI implementation.

Function Documentation

◆ acpi_tables_initialize()

bool acpi_tables_initialize ( void  )

Initializes the ACPICA Table Manager. Requires dynamic memory.

The ACPICA Table Manager is independent of the rest of the ACPICA subsystem and only requires dynamic memory to be initialized (unless a statically allocated array for the tables is provided). Since access to ACPI tables may be required before the entire ACPICA subsystem can be initialized this routine can be used earlier in the system intialization.

Returns
true if successful.

◆ acpi_walk_subtables()

void acpi_walk_subtables ( ACPI_TABLE_HEADER table,
size_t  size_of_header,
void(*)(ACPI_SUBTABLE_HEADER *)  handler 
)

Walks through the subtables of an ACPI table.

Parameters
tablePointer to the table.
size_of_headerSize of the table header (used to offset into first subtable).
handlerHandler that is called for each subtable found.