drivers/net/wireless/intel/iwlwifi/dvm/devices.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlwifi/dvm/devices.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlwifi/dvm/devices.c- Extension
.c- Size
- 19117 bytes
- Lines
- 676
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/units.hiwl-io.hiwl-prph.hiwl-nvm-utils.hagn.hdev.hcommands.h
Detected Declarations
function Copyrightfunction iwl1000_nic_configfunction iwl_beacon_time_mask_lowfunction iwl_beacon_time_mask_highfunction iwl_usecs_to_beaconsfunction iwl_add_beacon_timefunction iwl1000_hw_set_hw_paramsfunction iwl2000_set_ct_thresholdfunction iwl2000_nic_configfunction iwl2000_hw_set_hw_paramsfunction iwl_temp_calib_to_offsetfunction iwl5150_set_ct_thresholdfunction iwl5000_set_ct_thresholdfunction iwl5000_hw_set_hw_paramsfunction iwl5150_hw_set_hw_paramsfunction iwl5150_temperaturefunction iwl5000_hw_channel_switchfunction iwl6000_set_ct_thresholdfunction iwl6000_nic_configfunction iwl6000_hw_set_hw_paramsfunction iwl6000_hw_channel_switch
Annotated Snippet
else if (base_low < addon_low) {
res += interval + base_low - addon_low;
res += (1 << IWLAGN_EXT_BEACON_TIME_POS);
} else
res += (1 << IWLAGN_EXT_BEACON_TIME_POS);
return cpu_to_le32(res);
}
static const struct iwl_sensitivity_ranges iwl1000_sensitivity = {
.min_nrg_cck = 95,
.auto_corr_min_ofdm = 90,
.auto_corr_min_ofdm_mrc = 170,
.auto_corr_min_ofdm_x1 = 120,
.auto_corr_min_ofdm_mrc_x1 = 240,
.auto_corr_max_ofdm = 120,
.auto_corr_max_ofdm_mrc = 210,
.auto_corr_max_ofdm_x1 = 155,
.auto_corr_max_ofdm_mrc_x1 = 290,
.auto_corr_min_cck = 125,
.auto_corr_max_cck = 200,
.auto_corr_min_cck_mrc = 170,
.auto_corr_max_cck_mrc = 400,
.nrg_th_cck = 95,
.nrg_th_ofdm = 95,
.barker_corr_th_min = 190,
.barker_corr_th_min_mrc = 390,
.nrg_th_cca = 62,
};
static void iwl1000_hw_set_hw_params(struct iwl_priv *priv)
{
iwl1000_set_ct_threshold(priv);
/* Set initial sensitivity parameters */
priv->hw_params.sens = &iwl1000_sensitivity;
}
const struct iwl_dvm_cfg iwl_dvm_1000_cfg = {
.set_hw_params = iwl1000_hw_set_hw_params,
.nic_config = iwl1000_nic_config,
.temperature = iwlagn_temperature,
.support_ct_kill_exit = true,
.plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF,
.chain_noise_scale = 1000,
};
/*
* 2000 series
* ===========
*/
static void iwl2000_set_ct_threshold(struct iwl_priv *priv)
{
/* want Celsius */
priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
}
/* NIC configuration for 2000 series */
static void iwl2000_nic_config(struct iwl_priv *priv)
{
iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG,
CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER);
}
static const struct iwl_sensitivity_ranges iwl2000_sensitivity = {
.min_nrg_cck = 97,
.auto_corr_min_ofdm = 80,
.auto_corr_min_ofdm_mrc = 128,
.auto_corr_min_ofdm_x1 = 105,
.auto_corr_min_ofdm_mrc_x1 = 192,
.auto_corr_max_ofdm = 145,
.auto_corr_max_ofdm_mrc = 232,
.auto_corr_max_ofdm_x1 = 110,
.auto_corr_max_ofdm_mrc_x1 = 232,
.auto_corr_min_cck = 125,
.auto_corr_max_cck = 175,
.auto_corr_min_cck_mrc = 160,
.auto_corr_max_cck_mrc = 310,
.nrg_th_cck = 97,
.nrg_th_ofdm = 100,
.barker_corr_th_min = 190,
Annotation
- Immediate include surface: `linux/units.h`, `iwl-io.h`, `iwl-prph.h`, `iwl-nvm-utils.h`, `agn.h`, `dev.h`, `commands.h`.
- Detected declarations: `function Copyright`, `function iwl1000_nic_config`, `function iwl_beacon_time_mask_low`, `function iwl_beacon_time_mask_high`, `function iwl_usecs_to_beacons`, `function iwl_add_beacon_time`, `function iwl1000_hw_set_hw_params`, `function iwl2000_set_ct_threshold`, `function iwl2000_nic_config`, `function iwl2000_hw_set_hw_params`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.