|
iPXE
|
USB device settings. More...
#include <stdio.h>#include <string.h>#include <errno.h>#include <ipxe/usb.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 | usb_settings_applies (struct settings *settings __unused, const struct setting *setting) |
| Check applicability of USB device setting. More... | |
| static int | usb_settings_fetch (struct settings *settings __unused, struct setting *setting, void *data, size_t len) |
| Fetch value of USB device setting. More... | |
| static void | usb_settings_init (void) |
| Initialise USB device settings. More... | |
| struct init_fn usb_settings_init_fn | __init_fn (INIT_NORMAL) |
| USB device settings initialiser. More... | |
Variables | |
| static const struct settings_scope | usb_settings_scope |
| USB device settings scope. More... | |
| static struct settings_operations | usb_settings_operations |
| USB device settings operations. More... | |
| static struct settings | usb_settings |
| USB device settings. More... | |
USB device settings.
Definition in file usb_settings.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Check applicability of USB device setting.
| settings | Settings block |
| setting | Setting |
| applies | Setting applies within this settings block |
Definition at line 49 of file usb_settings.c.
References setting::scope, and usb_settings_scope.
|
static |
Fetch value of USB 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 64 of file usb_settings.c.
References bus, data, desc, usb_device::device, ENODEV, find_usb(), find_usb_bus(), index, len, rc, src, setting::tag, setting::type, USB_BUS, USB_DEV, and usb_get_string_descriptor().
|
static |
Initialise USB device settings.
Definition at line 164 of file usb_settings.c.
References DBG, NULL, rc, register_settings(), strerror(), and usb_settings.
| struct init_fn usb_settings_init_fn __init_fn | ( | INIT_NORMAL | ) |
USB device settings initialiser.
|
static |
USB device settings scope.
Definition at line 40 of file usb_settings.c.
Referenced by usb_settings_applies().
|
static |
USB device settings operations.
Definition at line 149 of file usb_settings.c.
|
static |
USB device settings.
Definition at line 155 of file usb_settings.c.
Referenced by usb_settings_init().
1.8.15