drivers/net/wireless/mediatek/mt76/mt7925/mcu.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/mediatek/mt76/mt7925/mcu.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/mediatek/mt76/mt7925/mcu.h- Extension
.h- Size
- 14023 bytes
- Lines
- 723
- 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
../mt76_connac_mcu.h
Detected Declarations
struct mt7925_mcu_eeprom_infostruct mt7925_mcu_rxdstruct mt7925_mcu_uni_eventstruct mt7925_mcu_reg_eventstruct mt7925_mcu_ant_id_configstruct mt7925_txpwr_reqstruct mt7925_txpwr_eventstruct mt7925_rftest_evtstruct mt7925_mcu_scan_chinfo_eventstruct scan_hdr_tlvstruct scan_req_tlvstruct scan_ssid_tlvstruct scan_bssid_tlvstruct scan_chan_info_tlvstruct scan_ie_tlvstruct scan_misc_tlvstruct scan_sched_reqstruct scan_sched_ssid_match_setsstruct scan_sched_enablestruct mbmc_set_reqstruct mbmc_conf_tlvstruct edcastruct bss_req_hdrstruct bss_rate_tlvstruct bss_mld_tlvstruct bss_eht_tlvstruct sta_rec_ba_unistruct sta_rec_ehtstruct sta_rec_sec_unistruct sta_rec_hdr_transstruct sta_rec_mldstruct sta_rec_eht_mldstruct bss_ifs_time_tlvstruct bss_rlm_tlvstruct mt7925_sku_tlvstruct mt7925_tx_power_limit_tlvstruct mt7925_arpns_tlvstruct mt7925_wow_pattern_tlvstruct roc_acquire_tlvstruct uni_cmd_testmode_ctrlstruct mt7925_rftest_cmdenum connac3_mcu_cipher_typeenum ENUM_CMD_TEST_CTRL_ACTenum ENUM_CMD_TEST_CTRL_ACT_SWITCH_MODE_OPfunction mt7925_mcu_get_cipher
Annotated Snippet
struct mt7925_mcu_eeprom_info {
__le32 addr;
__le32 valid;
u8 data[MT7925_EEPROM_BLOCK_SIZE];
} __packed;
#define MT_RA_RATE_NSS GENMASK(8, 6)
#define MT_RA_RATE_MCS GENMASK(3, 0)
#define MT_RA_RATE_TX_MODE GENMASK(12, 9)
#define MT_RA_RATE_DCM_EN BIT(4)
#define MT_RA_RATE_BW GENMASK(14, 13)
struct mt7925_mcu_rxd {
__le32 rxd[8];
__le16 len;
__le16 pkt_type_id;
u8 eid;
u8 seq;
u8 option;
u8 __rsv;
u8 ext_eid;
u8 __rsv1[2];
u8 s2d_index;
u8 tlv[];
};
struct mt7925_mcu_uni_event {
u8 cid;
u8 pad[3];
__le32 status; /* 0: success, others: fail */
} __packed;
enum {
MT_EBF = BIT(0), /* explicit beamforming */
MT_IBF = BIT(1) /* implicit beamforming */
};
struct mt7925_mcu_reg_event {
__le32 reg;
__le32 val;
} __packed;
struct mt7925_mcu_ant_id_config {
u8 ant_id[4];
} __packed;
struct mt7925_txpwr_req {
u8 _rsv[4];
__le16 tag;
__le16 len;
u8 format_id;
u8 catg;
u8 band_idx;
u8 _rsv1;
} __packed;
struct mt7925_txpwr_event {
u8 rsv[4];
__le16 tag;
__le16 len;
u8 catg;
u8 band_idx;
u8 ch_band;
u8 format; /* 0:Legacy, 1:HE */
/* Rate power info */
struct mt7925_txpwr txpwr;
s8 pwr_max;
s8 pwr_min;
u8 rsv1;
} __packed;
enum {
TM_SWITCH_MODE,
TM_SET_AT_CMD,
TM_QUERY_AT_CMD,
};
enum {
MT7925_TM_NORMAL,
MT7925_TM_TESTMODE,
MT7925_TM_ICAP,
MT7925_TM_ICAP_OVERLAP,
Annotation
- Immediate include surface: `../mt76_connac_mcu.h`.
- Detected declarations: `struct mt7925_mcu_eeprom_info`, `struct mt7925_mcu_rxd`, `struct mt7925_mcu_uni_event`, `struct mt7925_mcu_reg_event`, `struct mt7925_mcu_ant_id_config`, `struct mt7925_txpwr_req`, `struct mt7925_txpwr_event`, `struct mt7925_rftest_evt`, `struct mt7925_mcu_scan_chinfo_event`, `struct scan_hdr_tlv`.
- 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.