iPXE
|
Linux devices, drivers and device requests. More...
Go to the source code of this file.
Data Structures | |
struct | linux_device |
A linux device. More... | |
struct | linux_driver |
A linux driver. More... | |
struct | linux_device_request |
A device request. More... | |
struct | linux_setting |
A device request setting. More... | |
Macros | |
#define | ELINUX(errno) EPLATFORM ( EINFO_EPLATFORM, errno ) |
Convert a Linux error number to an iPXE status code. More... | |
#define | LINUX_DRIVERS __table(struct linux_driver, "linux_drivers") |
Linux driver table. More... | |
#define | __linux_driver __table_entry(LINUX_DRIVERS, 01) |
Declare a Linux driver. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
static void | linux_set_drvdata (struct linux_device *device, void *priv) |
Set linux device driver-private data. More... | |
static void * | linux_get_drvdata (struct linux_device *device) |
Get linux device driver-private data. More... | |
struct linux_setting * | linux_find_setting (char *name, struct list_head *settings) |
Look for the last occurrence of a setting with the specified name. More... | |
void | linux_apply_settings (struct list_head *new_settings, struct settings *settings_block) |
Apply a list of linux settings to a settings block. More... | |
Variables | |
struct list_head | linux_device_requests |
List of requested devices. More... | |
struct list_head | linux_global_settings |
List of global settings to apply. More... | |
Linux devices, drivers and device requests.
Definition in file linux.h.
#define ELINUX | ( | errno | ) | EPLATFORM ( EINFO_EPLATFORM, errno ) |
#define LINUX_DRIVERS __table(struct linux_driver, "linux_drivers") |
#define __linux_driver __table_entry(LINUX_DRIVERS, 01) |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
inlinestatic |
|
inlinestatic |
Get linux device driver-private data.
device | Linux device |
priv | Private data |
struct linux_setting* linux_find_setting | ( | char * | name, |
struct list_head * | settings | ||
) |
Look for the last occurrence of a setting with the specified name.
name | Name of the setting to look for |
settings | List of the settings to look through |
Apply a list of linux settings to a settings block.
new_settings | List of linux_setting's to apply |
settings_block | Settings block to apply the settings to |
rc | 0 on success |
struct list_head linux_device_requests |
List of requested devices.
Filled by the UI code. Linux root_driver walks over this list looking for an appropriate driver to handle each request by matching the driver's name.
Referenced by linux_args_cleanup(), and parse_net_args().
struct list_head linux_global_settings |
List of global settings to apply.
Filled by the UI code. Linux root_driver applies these settings.
Referenced by linux_args_cleanup(), and parse_settings_args().