drivers/net/wireless/mediatek/mt76/mt7915/testmode.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/mediatek/mt76/mt7915/testmode.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/mediatek/mt76/mt7915/testmode.h- Extension
.h- Size
- 1466 bytes
- Lines
- 106
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct mt7915_tm_trxstruct mt7915_tm_freq_offsetstruct mt7915_tm_slot_timestruct mt7915_tm_clean_txqstruct mt7915_tm_cmdstruct tm_tx_contstruct mt7915_tm_rf_test
Annotated Snippet
struct mt7915_tm_trx {
u8 type;
u8 enable;
u8 band;
u8 rsv;
};
struct mt7915_tm_freq_offset {
u8 band;
__le32 freq_offset;
};
struct mt7915_tm_slot_time {
u8 slot_time;
u8 sifs;
u8 rifs;
u8 _rsv;
__le16 eifs;
u8 band;
u8 _rsv1[5];
};
struct mt7915_tm_clean_txq {
bool sta_pause;
u8 wcid; /* 256 sta */
u8 band;
u8 rsv;
};
struct mt7915_tm_cmd {
u8 testmode_en;
u8 param_idx;
u8 _rsv[2];
union {
__le32 data;
struct mt7915_tm_trx trx;
struct mt7915_tm_freq_offset freq;
struct mt7915_tm_slot_time slot;
struct mt7915_tm_clean_txq clean;
u8 test[72];
} param;
} __packed;
enum {
TM_MAC_TX = 1,
TM_MAC_RX,
TM_MAC_TXRX,
TM_MAC_TXRX_RXV,
TM_MAC_RXV,
TM_MAC_RX_RXV,
};
struct tm_tx_cont {
u8 control_ch;
u8 center_ch;
u8 bw;
u8 tx_ant;
__le16 rateval;
u8 band;
u8 txfd_mode;
};
struct mt7915_tm_rf_test {
u8 action;
u8 icap_len;
u8 _rsv[2];
union {
__le32 op_mode;
__le32 freq;
struct {
__le32 func_idx;
union {
__le32 func_data;
__le32 cal_dump;
struct tm_tx_cont tx_cont;
u8 _pad[80];
} param;
} rf;
} op;
} __packed;
enum {
RF_OPER_NORMAL,
RF_OPER_RF_TEST,
RF_OPER_ICAP,
RF_OPER_ICAP_OVERLAP,
RF_OPER_WIFI_SPECTRUM,
Annotation
- Detected declarations: `struct mt7915_tm_trx`, `struct mt7915_tm_freq_offset`, `struct mt7915_tm_slot_time`, `struct mt7915_tm_clean_txq`, `struct mt7915_tm_cmd`, `struct tm_tx_cont`, `struct mt7915_tm_rf_test`.
- 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.