drivers/net/wireless/ath/ath9k/htc.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath9k/htc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath9k/htc.h- Extension
.h- Size
- 16606 bytes
- Lines
- 654
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/usb.hlinux/firmware.hlinux/skbuff.hlinux/netdevice.hlinux/etherdevice.hlinux/leds.hlinux/slab.hnet/mac80211.hcommon.hhtc_hst.hhif_usb.hwmi.h
Detected Declarations
struct tx_frame_hdrstruct tx_mgmt_hdrstruct tx_beacon_headerstruct ath9k_htc_cap_targetstruct ath9k_htc_target_vifstruct ath9k_htc_target_stastruct ath9k_htc_target_aggrstruct ath9k_htc_ratesetstruct ath9k_htc_ratestruct ath9k_htc_target_ratestruct ath9k_htc_target_rate_maskstruct ath9k_htc_target_int_statsstruct ath9k_htc_target_tx_statsstruct ath9k_htc_target_rx_statsstruct ath9k_htc_vifstruct ath9k_vif_iter_datastruct ath9k_htc_stastruct ath9k_htc_rxbufstruct ath9k_htc_rxstruct ath9k_htc_txstruct ath9k_htc_tx_ctlstruct ath_tx_statsstruct ath_skbrx_statsstruct ath9k_debugstruct htc_beaconstruct ath_btcoexstruct ath9k_htc_privenum htc_phymodeenum htc_opmodeenum tid_aggr_stateenum htc_op_flagsfunction ath9k_htc_err_stat_rxfunction ath9k_htc_init_btcoexfunction ath_read_cachesizefunction ath9k_configure_ledsfunction ath9k_htc_init_debugfunction ath9k_htc_deinit_debug
Annotated Snippet
struct tx_frame_hdr {
u8 data_type;
u8 node_idx;
u8 vif_idx;
u8 tidno;
__be32 flags; /* ATH9K_HTC_TX_* */
u8 key_type;
u8 keyix;
u8 cookie;
u8 pad;
} __packed;
struct tx_mgmt_hdr {
u8 node_idx;
u8 vif_idx;
u8 tidno;
u8 flags;
u8 key_type;
u8 keyix;
u8 cookie;
u8 pad;
} __packed;
struct tx_beacon_header {
u8 vif_index;
u8 len_changed;
u16 rev;
} __packed;
#define MAX_TX_AMPDU_SUBFRAMES_9271 17
#define MAX_TX_AMPDU_SUBFRAMES_7010 22
struct ath9k_htc_cap_target {
__be32 ampdu_limit;
u8 ampdu_subframes;
u8 enable_coex;
u8 tx_chainmask;
u8 pad;
} __packed;
struct ath9k_htc_target_vif {
u8 index;
u8 opmode;
u8 myaddr[ETH_ALEN];
u8 ath_cap;
__be16 rtsthreshold;
u8 pad;
} __packed;
struct ath9k_htc_target_sta {
u8 macaddr[ETH_ALEN];
u8 bssid[ETH_ALEN];
u8 sta_index;
u8 vif_index;
u8 is_vif_sta;
__be16 flags;
__be16 htcap;
__be16 maxampdu;
u8 pad;
} __packed;
struct ath9k_htc_target_aggr {
u8 sta_index;
u8 tidno;
u8 aggr_enable;
u8 padding;
} __packed;
#define ATH_HTC_RATE_MAX 30
#define WLAN_RC_DS_FLAG 0x01
#define WLAN_RC_40_FLAG 0x02
#define WLAN_RC_SGI_FLAG 0x04
#define WLAN_RC_HT_FLAG 0x08
#define ATH_RC_TX_STBC_FLAG 0x20
struct ath9k_htc_rateset {
u8 rs_nrates;
u8 rs_rates[ATH_HTC_RATE_MAX];
};
struct ath9k_htc_rate {
struct ath9k_htc_rateset legacy_rates;
struct ath9k_htc_rateset ht_rates;
} __packed;
struct ath9k_htc_target_rate {
u8 sta_index;
u8 isnew;
__be32 capflags;
Annotation
- Immediate include surface: `linux/module.h`, `linux/usb.h`, `linux/firmware.h`, `linux/skbuff.h`, `linux/netdevice.h`, `linux/etherdevice.h`, `linux/leds.h`, `linux/slab.h`.
- Detected declarations: `struct tx_frame_hdr`, `struct tx_mgmt_hdr`, `struct tx_beacon_header`, `struct ath9k_htc_cap_target`, `struct ath9k_htc_target_vif`, `struct ath9k_htc_target_sta`, `struct ath9k_htc_target_aggr`, `struct ath9k_htc_rateset`, `struct ath9k_htc_rate`, `struct ath9k_htc_target_rate`.
- 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.