iPXE
|
PCI device settings. More...
#include <stdio.h>
#include <errno.h>
#include <ipxe/pci.h>
#include <ipxe/settings.h>
#include <ipxe/init.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | pci_settings_applies (struct settings *settings __unused, const struct setting *setting) |
Check applicability of PCI device setting. More... | |
static int | pci_settings_fetch (struct settings *settings __unused, struct setting *setting, void *data, size_t len) |
Fetch value of PCI device setting. More... | |
static void | pci_settings_init (void) |
Initialise PCI device settings. More... | |
struct init_fn pci_settings_init_fn | __init_fn (INIT_NORMAL) |
PCI device settings initialiser. More... | |
Variables | |
static const struct settings_scope | pci_settings_scope |
PCI device settings scope. More... | |
static struct settings_operations | pci_settings_operations |
PCI device settings operations. More... | |
static struct settings | pci_settings |
PCI device settings. More... | |
PCI device settings.
Definition in file pci_settings.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Check applicability of PCI device setting.
settings | Settings block |
setting | Setting |
applies | Setting applies within this settings block |
Definition at line 48 of file pci_settings.c.
References pci_settings_scope, and setting::scope.
|
static |
Fetch value of PCI device 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 63 of file pci_settings.c.
References data, DBG, len, memset(), PCI_ARGS, PCI_FMT, pci_init(), pci_read_config_byte(), setting::tag, and setting::type.
|
static |
Initialise PCI device settings.
Definition at line 115 of file pci_settings.c.
References DBG, NULL, pci_settings, rc, register_settings(), and strerror().
struct init_fn pci_settings_init_fn __init_fn | ( | INIT_NORMAL | ) |
PCI device settings initialiser.
|
static |
PCI device settings scope.
Definition at line 39 of file pci_settings.c.
Referenced by pci_settings_applies().
|
static |
PCI device settings operations.
Definition at line 100 of file pci_settings.c.
|
static |
PCI device settings.
Definition at line 106 of file pci_settings.c.
Referenced by pci_settings_init().