drivers/net/wireless/mediatek/mt76/mt792x.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/mediatek/mt76/mt792x.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/mediatek/mt76/mt792x.h- Extension
.h- Size
- 16647 bytes
- Lines
- 578
- 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/interrupt.hlinux/ktime.hmt76_connac_mcu.hmt792x_regs.hmt792x_acpi_sar.h
Detected Declarations
struct mt792x_vifstruct mt792x_stastruct mt792x_realease_infostruct mt792x_fw_featuresstruct mt792x_link_stastruct mt792x_stastruct mt792x_chanctxstruct mt792x_bss_confstruct mt792x_vifstruct mt792x_phystruct mt792x_irq_mapstruct mt792x_dma_ringstruct mt792x_dma_layoutstruct mt792x_hif_opsstruct mt792x_devenum mt792x_reg_power_typeenum mt792x_mlo_pm_statefunction mt792x_vif_to_linkfunction mt792x_sta_to_linkfunction mt792x_link_conf_to_mconffunction mt792x_vif_to_bss_conffunction mt792x_sta_to_link_stafunction mt792x_hw_devfunction mt792x_hw_phyfunction mt792x_get_status_freq_infofunction mt792x_dma_need_reinitfunction mt792x_skb_add_usb_sdio_hdrfunction mt792x_init_acpi_sarfunction mt792x_init_acpi_sar_powerfunction mt792x_acpi_get_flagsfunction mt792x_acpi_get_mtcl_conf
Annotated Snippet
struct mt792x_realease_info {
__le16 len;
u8 pad_len;
u8 tag;
} __packed;
struct mt792x_fw_features {
u8 segment;
u8 data;
u8 rsv[14];
} __packed;
enum {
MT792x_CLC_POWER,
MT792x_CLC_POWER_EXT,
MT792x_CLC_BE_CTRL,
MT792x_CLC_MAX_NUM,
};
enum mt792x_reg_power_type {
MT_AP_UNSET = 0,
MT_AP_DEFAULT,
MT_AP_LPI,
MT_AP_SP,
MT_AP_VLP,
};
enum mt792x_mlo_pm_state {
MT792x_MLO_LINK_DISASSOC,
MT792x_MLO_LINK_ASSOC,
MT792x_MLO_CHANGED_PS_PENDING,
MT792x_MLO_CHANGED_PS,
};
DECLARE_EWMA(avg_signal, 10, 8)
struct mt792x_link_sta {
struct mt76_wcid wcid; /* must be first */
struct rcu_head rcu_head;
u32 airtime_ac[8];
int ack_signal;
struct ewma_avg_signal avg_ack_signal;
unsigned long last_txs;
struct mt76_connac_sta_key_conf bip;
struct mt792x_sta *sta;
struct ieee80211_link_sta *pri_link;
};
struct mt792x_sta {
struct mt792x_link_sta deflink; /* must be first */
struct mt792x_link_sta __rcu *link[IEEE80211_MLD_MAX_NUM_LINKS];
struct mt792x_vif *vif;
u16 valid_links;
u8 deflink_id;
};
DECLARE_EWMA(rssi, 10, 8);
struct mt792x_chanctx {
struct mt792x_bss_conf *bss_conf;
};
struct mt792x_bss_conf {
struct mt76_vif_link mt76; /* must be first */
struct mt792x_vif *vif;
struct ewma_rssi rssi;
struct ieee80211_tx_queue_params queue_params[IEEE80211_NUM_ACS];
unsigned int link_id;
};
struct mt792x_vif {
struct mt792x_bss_conf bss_conf; /* must be first */
struct mt792x_bss_conf __rcu *link_conf[IEEE80211_MLD_MAX_NUM_LINKS];
struct mt792x_sta sta;
struct mt792x_sta *wep_sta;
struct mt792x_phy *phy;
u16 valid_links;
u8 deflink_id;
enum mt792x_mlo_pm_state mlo_pm_state;
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/ktime.h`, `mt76_connac_mcu.h`, `mt792x_regs.h`, `mt792x_acpi_sar.h`.
- Detected declarations: `struct mt792x_vif`, `struct mt792x_sta`, `struct mt792x_realease_info`, `struct mt792x_fw_features`, `struct mt792x_link_sta`, `struct mt792x_sta`, `struct mt792x_chanctx`, `struct mt792x_bss_conf`, `struct mt792x_vif`, `struct mt792x_phy`.
- 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.