drivers/net/wireless/ath/ath11k/core.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath11k/core.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath11k/core.h- Extension
.h- Size
- 34091 bytes
- Lines
- 1376
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/interrupt.hlinux/irq.hlinux/bitfield.hlinux/dmi.hlinux/ctype.hlinux/rhashtable.hlinux/average.hlinux/firmware.hlinux/suspend.hlinux/of.hqmi.hhtc.hwmi.hhal.hdp.hce.hmac.hhw.hhal_rx.hreg.hthermal.hdbring.hspectral.hwow.hfw.hcoredump.hcfr.h
Detected Declarations
struct ath11k_skb_cbstruct ath11k_skb_rxcbstruct ath11k_ext_irq_grpstruct ath11k_smbios_bdfstruct he_ppe_thresholdstruct ath11k_hestruct ath11k_arp_ns_offloadstruct ath11k_rekey_datastruct ath11k_chan_power_infostruct ath11k_reg_tpc_power_infostruct ath11k_vifstruct ath11k_vif_iterstruct ath11k_rx_peer_statsstruct ath11k_htt_data_statsstruct ath11k_htt_tx_statsstruct ath11k_per_ppdu_tx_statsstruct ath11k_per_peer_cfr_capturestruct ath11k_stastruct ath11k_fw_statsstruct ath11k_dbg_htt_statsstruct ath11k_debugstruct ath11k_per_peer_tx_statsstruct ath11kstruct ath11k_band_capstruct ath11k_pdev_capstruct ath11k_pdevstruct ath11k_board_datastruct ath11k_pci_opsstruct ath11k_bp_statsstruct ath11k_dp_ring_bp_statsstruct ath11k_soc_dp_tx_err_statsstruct ath11k_soc_dp_statsstruct ath11k_msi_userstruct ath11k_msi_configstruct ath11k_basestruct ath11k_fw_stats_pdevstruct ath11k_fw_stats_vdevstruct ath11k_fw_stats_bcnenum ath11k_supported_bwenum ath11k_bdf_searchenum wme_acenum ath11k_crypt_modeenum ath11k_skb_flagsenum ath11k_hw_revenum ath11k_firmware_modeenum ath11k_smbios_cc_typeenum ath11k_scan_stateenum ath11k_11d_state
Annotated Snippet
struct ath11k_skb_cb {
dma_addr_t paddr;
u8 eid;
u8 flags;
u32 cipher;
struct ath11k *ar;
struct ieee80211_vif *vif;
} __packed;
struct ath11k_skb_rxcb {
dma_addr_t paddr;
bool is_first_msdu;
bool is_last_msdu;
bool is_continuation;
bool is_mcbc;
bool is_eapol;
struct hal_rx_desc *rx_desc;
u8 err_rel_src;
u8 err_code;
u8 mac_id;
u8 unmapped;
u8 is_frag;
u8 tid;
u16 peer_id;
u16 seq_no;
};
enum ath11k_hw_rev {
ATH11K_HW_IPQ8074,
ATH11K_HW_QCA6390_HW20,
ATH11K_HW_IPQ6018_HW10,
ATH11K_HW_QCN9074_HW10,
ATH11K_HW_WCN6855_HW20,
ATH11K_HW_WCN6855_HW21,
ATH11K_HW_WCN6750_HW10,
ATH11K_HW_IPQ5018_HW10,
ATH11K_HW_QCA2066_HW21,
ATH11K_HW_QCA6698AQ_HW21,
};
enum ath11k_firmware_mode {
/* the default mode, standard 802.11 functionality */
ATH11K_FIRMWARE_MODE_NORMAL,
/* factory tests etc */
ATH11K_FIRMWARE_MODE_FTM,
/* Cold boot calibration */
ATH11K_FIRMWARE_MODE_COLD_BOOT = 7,
};
extern bool ath11k_cold_boot_cal;
#define ATH11K_IRQ_NUM_MAX 52
#define ATH11K_EXT_IRQ_NUM_MAX 16
struct ath11k_ext_irq_grp {
struct ath11k_base *ab;
u32 irqs[ATH11K_EXT_IRQ_NUM_MAX];
u32 num_irq;
u32 grp_id;
u64 timestamp;
bool napi_enabled;
struct napi_struct napi;
struct net_device *napi_ndev;
};
enum ath11k_smbios_cc_type {
/* disable country code setting from SMBIOS */
ATH11K_SMBIOS_CC_DISABLE = 0,
/* set country code by ANSI country name, based on ISO3166-1 alpha2 */
ATH11K_SMBIOS_CC_ISO = 1,
/* worldwide regdomain */
ATH11K_SMBIOS_CC_WW = 2,
};
struct ath11k_smbios_bdf {
struct dmi_header hdr;
u8 features_disabled;
/* enum ath11k_smbios_cc_type */
u8 country_code_flag;
/* To set specific country, you need to set country code
* flag=ATH11K_SMBIOS_CC_ISO first, then if country is United
* States, then country code value = 0x5553 ("US",'U' = 0x55, 'S'=
* 0x53). To set country to INDONESIA, then country code value =
Annotation
- Immediate include surface: `linux/types.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/bitfield.h`, `linux/dmi.h`, `linux/ctype.h`, `linux/rhashtable.h`, `linux/average.h`.
- Detected declarations: `struct ath11k_skb_cb`, `struct ath11k_skb_rxcb`, `struct ath11k_ext_irq_grp`, `struct ath11k_smbios_bdf`, `struct he_ppe_threshold`, `struct ath11k_he`, `struct ath11k_arp_ns_offload`, `struct ath11k_rekey_data`, `struct ath11k_chan_power_info`, `struct ath11k_reg_tpc_power_info`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.