drivers/net/wireless/intel/iwlwifi/dvm/dev.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlwifi/dvm/dev.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlwifi/dvm/dev.h- Extension
.h- Size
- 24049 bytes
- Lines
- 928
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hlinux/kernel.hlinux/wait.hlinux/leds.hlinux/slab.hlinux/mutex.hfw/img.hiwl-nvm-utils.hiwl-csr.hiwl-debug.hiwl-agn-hw.hiwl-op-mode.hfw/notif-wait.hiwl-trans.hled.hpower.hrs.htt.h
Detected Declarations
struct iwl_ht_configstruct iwl_qos_infostruct iwl_ht_aggstruct iwl_tid_datastruct iwl_station_entrystruct iwl_station_privstruct iwl_vif_privstruct iwl_sensitivity_rangesstruct iwl_sensitivity_datastruct iwl_chain_noise_datastruct reply_tx_error_statisticsstruct reply_agg_tx_error_statisticsstruct iwl_event_logstruct iwl_rf_resetstruct iwl_rxon_contextstruct iwl_hw_paramsstruct iwl_dvm_bt_paramsstruct iwl_dvm_cfgstruct iwl_wipan_noa_datastruct iwl_privenum iwl_agg_stateenum iwlagn_false_alarm_stateenum iwlagn_chain_noise_stateenum iwl_rxon_context_idenum iwl_scan_typefunction iwl_rxon_ctx_from_viffunction iwl_is_associatedfunction iwl_is_any_associated
Annotated Snippet
struct iwl_ht_config {
bool single_chain_sufficient;
enum ieee80211_smps_mode smps; /* current smps mode */
};
/* QoS structures */
struct iwl_qos_info {
int qos_active;
struct iwl_qosparam_cmd def_qos_parm;
};
/**
* enum iwl_agg_state - aggregation state
*
* The state machine of the BA agreement establishment / tear down.
* These states relate to a specific RA / TID.
*
* @IWL_AGG_OFF: aggregation is not used
* @IWL_AGG_STARTING: aggregation are starting (between start and oper)
* @IWL_AGG_ON: aggregation session is up
* @IWL_EMPTYING_HW_QUEUE_ADDBA: establishing a BA session - waiting for the
* HW queue to be empty from packets for this RA /TID.
* @IWL_EMPTYING_HW_QUEUE_DELBA: tearing down a BA session - waiting for the
* HW queue to be empty from packets for this RA /TID.
*/
enum iwl_agg_state {
IWL_AGG_OFF = 0,
IWL_AGG_STARTING,
IWL_AGG_ON,
IWL_EMPTYING_HW_QUEUE_ADDBA,
IWL_EMPTYING_HW_QUEUE_DELBA,
};
/**
* struct iwl_ht_agg - aggregation state machine
*
* This structs holds the states for the BA agreement establishment and tear
* down. It also holds the state during the BA session itself. This struct is
* duplicated for each RA / TID.
*
* @rate_n_flags: Rate at which Tx was attempted. Holds the data between the
* Tx response (REPLY_TX), and the block ack notification
* (REPLY_COMPRESSED_BA).
* @state: state of the BA agreement establishment / tear down.
* @txq_id: Tx queue used by the BA session
* @ssn: the first packet to be sent in AGG HW queue in Tx AGG start flow, or
* the first packet to be sent in legacy HW queue in Tx AGG stop flow.
* Basically when next_reclaimed reaches ssn, we can tell mac80211 that
* we are ready to finish the Tx AGG stop / start flow.
* @wait_for_ba: Expect block-ack before next Tx reply
*/
struct iwl_ht_agg {
u32 rate_n_flags;
enum iwl_agg_state state;
u16 txq_id;
u16 ssn;
bool wait_for_ba;
};
/**
* struct iwl_tid_data - one for each RA / TID
*
* This structs holds the states for each RA / TID.
*
* @seq_number: the next WiFi sequence number to use
* @next_reclaimed: the WiFi sequence number of the next packet to be acked.
* This is basically (last acked packet++).
* @agg: aggregation state machine
*/
struct iwl_tid_data {
u16 seq_number;
u16 next_reclaimed;
struct iwl_ht_agg agg;
};
/*
* Structure should be accessed with sta_lock held. When station addition
* is in progress (IWL_STA_UCODE_INPROGRESS) it is possible to access only
* the commands (iwl_addsta_cmd and iwl_link_quality_cmd) without sta_lock
* held.
*/
struct iwl_station_entry {
struct iwl_addsta_cmd sta;
u8 used, ctxid;
struct iwl_link_quality_cmd *lq;
};
/*
* iwl_station_priv: Driver's private station information
*
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/kernel.h`, `linux/wait.h`, `linux/leds.h`, `linux/slab.h`, `linux/mutex.h`, `fw/img.h`, `iwl-nvm-utils.h`.
- Detected declarations: `struct iwl_ht_config`, `struct iwl_qos_info`, `struct iwl_ht_agg`, `struct iwl_tid_data`, `struct iwl_station_entry`, `struct iwl_station_priv`, `struct iwl_vif_priv`, `struct iwl_sensitivity_ranges`, `struct iwl_sensitivity_data`, `struct iwl_chain_noise_data`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.