Linux Kernel
3.7.1
|
#include <common.h>
Data Fields | |
const char * | name |
const char * | fw_name_pre |
const unsigned int | ucode_api_max |
const unsigned int | ucode_api_min |
u8 | valid_tx_ant |
u8 | valid_rx_ant |
unsigned int | sku |
u16 | eeprom_ver |
u16 | eeprom_calib_ver |
struct il_mod_params * | mod_params |
struct il_base_params * | base_params |
u8 | scan_rx_antennas [IEEE80211_NUM_BANDS] |
enum il_led_mode | led_mode |
int | eeprom_size |
int | num_of_queues |
int | num_of_ampdu_queues |
u32 | pll_cfg_val |
bool | set_l0s |
bool | use_bsm |
u16 | led_compensation |
int | chain_noise_num_beacons |
unsigned int | wd_timeout |
bool | temperature_kelvin |
const bool | ucode_tracing |
const bool | sensitivity_calib_by_driver |
const bool | chain_noise_calib_by_driver |
const u32 | regulatory_bands [7] |
struct il_cfg : Firmware filename prefix. The api version and extension (.ucode) will be added to filename before loading from disk. The filename is constructed as fw_name_pre<api>.ucode. : Highest version of uCode API supported by driver. : Lowest version of uCode API supported by driver. : available antenna for scan operation : 0=blinking, 1=On(RF On)/Off(RF Off)
We enable the driver to be backward compatible wrt API version. The driver specifies which APIs it supports (with being the highest and the lowest). Firmware will only be loaded if it has a supported API version. The firmware's API version will be stored in , enabling the driver to make runtime changes based on firmware version used.
For example, if (IL_UCODE_API(il->ucode_ver) >= 2) { Driver interacts with Firmware API version >= 2. } else { Driver interacts with Firmware API version 1. }
The ideal usage of this infrastructure is to treat a new ucode API release as a new hardware revision. That is, through utilizing the il_hcmd_utils_ops etc. we accommodate different command structures and flows between hardware versions as well as their API versions.
enum il_led_mode led_mode |
struct il_mod_params* mod_params |
u8 scan_rx_antennas[IEEE80211_NUM_BANDS] |