|
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) |
| Convert a Linux error number to an iPXE status code. | |
| #define | LINUX_DRIVERS __table(struct linux_driver, "linux_drivers") |
| Linux driver table. | |
| #define | __linux_driver __table_entry(LINUX_DRIVERS, 01) |
| Declare a Linux driver. | |
| #define | LINUX_ROM(_name, _desc) |
| Define build rules for a Linux driver. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| static void | linux_set_drvdata (struct linux_device *device, void *priv) |
| Set linux device driver-private data. | |
| static void * | linux_get_drvdata (struct linux_device *device) |
| Get linux device driver-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. | |
| void | linux_apply_settings (struct list_head *new_settings, struct settings *settings_block) |
| Apply a list of linux settings to a settings block. | |
Variables | |
| struct list_head | linux_device_requests |
| List of requested devices. | |
| struct list_head | linux_global_settings |
| List of global settings to apply. | |
Linux devices, drivers and device requests.
Definition in file linux.h.
| #define ELINUX | ( | errno | ) |
Convert a Linux error number to an iPXE status code.
| errno | Linux error number |
| rc | iPXE status code (before negation) |
Definition at line 39 of file linux.h.
Referenced by slirp_poll().
| #define LINUX_DRIVERS __table(struct linux_driver, "linux_drivers") |
| #define __linux_driver __table_entry(LINUX_DRIVERS, 01) |
| #define LINUX_ROM | ( | _name, | |
| _desc ) |
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
inlinestatic |
Set linux device driver-private data.
| device | Linux device |
| priv | Private data |
Definition at line 78 of file linux.h.
References priv.
Referenced by af_packet_nic_probe(), slirp_probe(), and tap_probe().
|
inlinestatic |
Get linux device driver-private data.
| device | Linux device |
| priv | Private data |
Definition at line 89 of file linux.h.
Referenced by af_packet_nic_remove(), slirp_remove(), and tap_remove().
| 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 |
References name.
Referenced by af_packet_nic_probe(), and tap_probe().
|
extern |
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 |
Referenced by af_packet_nic_probe(), slirp_probe(), and tap_probe().
|
extern |
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().
|
extern |
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().