drivers/net/wireless/mediatek/mt76/mt7915/mcu.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/mediatek/mt76/mt7915/mcu.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/mediatek/mt76/mt7915/mcu.h- Extension
.h- Size
- 9651 bytes
- Lines
- 536
- 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 mt7915_mcu_thermal_ctrlstruct mt7915_mcu_thermal_notifystruct mt7915_mcu_csa_notifystruct mt7915_mcu_bcc_notifystruct mt7915_mcu_rdd_reportstruct mt7915_mcu_background_chain_ctrlstruct mt7915_mcu_sr_ctrlstruct mt7915_mcu_eepromstruct mt7915_mcu_eeprom_infostruct mt7915_mcu_phy_rx_infostruct mt7915_mcu_mibstruct mt7915_mcu_txpower_skustruct edcastruct mt7915_mcu_txstruct mt7915_mcu_muru_statsstruct bss_info_bmc_ratestruct bss_info_rastruct bss_info_hw_amsdustruct bss_info_colorstruct bss_info_hestruct bss_info_bcnstruct bss_info_bcn_cntdwnstruct bss_info_bcn_mbssstruct bss_info_bcn_contstruct bss_info_inband_discoverystruct bss_info_protenum mt7915_chan_mib_offsenum mcu_mmps_mode
Annotated Snippet
struct mt7915_mcu_thermal_ctrl {
u8 ctrl_id;
u8 band_idx;
union {
struct {
u8 protect_type; /* 1: duty admit, 2: radio off */
u8 trigger_type; /* 0: low, 1: high */
} __packed type;
struct {
u8 duty_level; /* level 0~3 */
u8 duty_cycle;
} __packed duty;
};
} __packed;
struct mt7915_mcu_thermal_notify {
struct mt76_connac2_mcu_rxd_hdr rxd;
struct mt7915_mcu_thermal_ctrl ctrl;
__le32 temperature;
u8 rsv[8];
} __packed;
struct mt7915_mcu_csa_notify {
struct mt76_connac2_mcu_rxd_hdr rxd;
u8 omac_idx;
u8 csa_count;
u8 band_idx;
u8 rsv;
} __packed;
struct mt7915_mcu_bcc_notify {
struct mt76_connac2_mcu_rxd_hdr rxd;
u8 band_idx;
u8 omac_idx;
u8 cca_count;
u8 rsv;
} __packed;
struct mt7915_mcu_rdd_report {
struct mt76_connac2_mcu_rxd_hdr rxd;
u8 rdd_idx;
u8 long_detected;
u8 constant_prf_detected;
u8 staggered_prf_detected;
u8 radar_type_idx;
u8 periodic_pulse_num;
u8 long_pulse_num;
u8 hw_pulse_num;
u8 out_lpn;
u8 out_spn;
u8 out_crpn;
u8 out_crpw;
u8 out_crbn;
u8 out_stgpn;
u8 out_stgpw;
u8 rsv;
__le32 out_pri_const;
__le32 out_pri_stg[3];
struct {
__le32 start;
__le16 pulse_width;
__le16 pulse_power;
u8 mdrdy_flag;
u8 rsv[3];
} long_pulse[32];
struct {
__le32 start;
__le16 pulse_width;
__le16 pulse_power;
u8 mdrdy_flag;
u8 rsv[3];
} periodic_pulse[32];
struct {
__le32 start;
__le16 pulse_width;
__le16 pulse_power;
u8 sc_pass;
u8 sw_reset;
u8 mdrdy_flag;
u8 tx_active;
Annotation
- Immediate include surface: `../mt76_connac_mcu.h`.
- Detected declarations: `struct mt7915_mcu_thermal_ctrl`, `struct mt7915_mcu_thermal_notify`, `struct mt7915_mcu_csa_notify`, `struct mt7915_mcu_bcc_notify`, `struct mt7915_mcu_rdd_report`, `struct mt7915_mcu_background_chain_ctrl`, `struct mt7915_mcu_sr_ctrl`, `struct mt7915_mcu_eeprom`, `struct mt7915_mcu_eeprom_info`, `struct mt7915_mcu_phy_rx_info`.
- 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.