iPXE
|
ACPI settings. More...
#include <string.h>
#include <errno.h>
#include <ipxe/init.h>
#include <ipxe/settings.h>
#include <ipxe/acpi.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | acpi_settings_applies (struct settings *settings __unused, const struct setting *setting) |
Check applicability of ACPI setting. More... | |
static int | acpi_settings_fetch (struct settings *settings, struct setting *setting, void *data, size_t len) |
Fetch value of ACPI setting. More... | |
static void | acpi_settings_init (void) |
Initialise ACPI settings. More... | |
struct init_fn acpi_settings_init_fn | __init_fn (INIT_NORMAL) |
ACPI settings initialiser. More... | |
Variables | |
static const struct settings_scope | acpi_settings_scope |
ACPI settings scope. More... | |
static struct settings_operations | acpi_settings_operations |
ACPI settings operations. More... | |
static struct settings | acpi_settings |
ACPI settings. More... | |
ACPI settings.
Definition in file acpi_settings.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Check applicability of ACPI setting.
settings | Settings block |
setting | Setting |
applies | Setting applies within this settings block |
Definition at line 49 of file acpi_settings.c.
References acpi_settings_scope, and setting::scope.
|
static |
Fetch value of ACPI setting.
settings | Settings block |
setting | Setting to fetch |
data | Buffer to fill with setting data |
len | Length of buffer |
len | Length of setting data, or negative error |
Definition at line 64 of file acpi_settings.c.
References acpi, acpi_name(), acpi_table(), bswap_32, copy_from_user(), data, DBGC, ENOENT, le32_to_cpu, len, setting_type::numerate, offset, setting::tag, and setting::type.
|
static |
Initialise ACPI settings.
Definition at line 147 of file acpi_settings.c.
References acpi_settings, DBG, NULL, rc, register_settings(), and strerror().
struct init_fn acpi_settings_init_fn __init_fn | ( | INIT_NORMAL | ) |
ACPI settings initialiser.
|
static |
ACPI settings scope.
Definition at line 40 of file acpi_settings.c.
Referenced by acpi_settings_applies().
|
static |
ACPI settings operations.
Definition at line 132 of file acpi_settings.c.
|
static |
ACPI settings.
Definition at line 138 of file acpi_settings.c.
Referenced by acpi_settings_init().