drivers/net/wireless/marvell/mwifiex/main.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/marvell/mwifiex/main.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/marvell/mwifiex/main.h- Extension
.h- Size
- 51091 bytes
- Lines
- 1701
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/completion.hlinux/kernel.hlinux/kstrtox.hlinux/module.hlinux/sched.hlinux/semaphore.hlinux/ip.hlinux/skbuff.hlinux/if_arp.hlinux/etherdevice.hnet/sock.hlinux/vmalloc.hlinux/firmware.hlinux/ctype.hlinux/of.hlinux/idr.hlinux/inetdevice.hlinux/devcoredump.hlinux/err.hlinux/gfp.hlinux/interrupt.hlinux/io.hlinux/of_platform.hlinux/platform_device.hlinux/pm_runtime.hlinux/slab.hlinux/of_irq.hlinux/workqueue.hdecl.hioctl.hutil.hfw.h
Detected Declarations
struct mwifiex_adapterstruct mwifiex_privatestruct mwifiex_dbgstruct mwifiex_tx_paramstruct mwifiex_add_ba_paramstruct mwifiex_tx_aggrstruct mwifiex_ra_list_tblstruct mwifiex_tid_tblstruct mwifiex_wmm_descstruct mwifiex_802_11_securitystruct ieee_types_headerstruct ieee_types_vendor_specificstruct ieee_types_genericstruct ieee_types_bss_co_2040struct ieee_types_extcapstruct ieee_types_vht_capstruct ieee_types_vht_operstruct ieee_types_aidstruct mwifiex_bssdescriptorstruct mwifiex_current_bss_paramsstruct mwifiex_sleep_periodstruct mwifiex_wep_keystruct mwifiex_chan_freq_powerstruct mwifiex_802_11d_domain_regstruct mwifiex_vendor_spec_cfg_iestruct wpsstruct mwifiex_roc_cfgstruct mwifiex_band_configstruct mwifiex_channel_bandstruct mwifiex_privatestruct mwifiex_tx_ba_stream_tblstruct mwifiex_rx_reorder_tblstruct reorder_tmr_cnxtstruct mwifiex_rx_reorder_tblstruct mwifiex_bss_prio_nodestruct mwifiex_bss_prio_tblstruct cmd_ctrl_nodestruct mwifiex_bss_privstruct mwifiex_tdls_capabstruct mwifiex_station_statsstruct mwifiex_sta_nodestruct mwifiex_auto_tdls_peerstruct bus_aggr_paramsstruct mwifiex_if_opsstruct mwifiex_adapterenum MWIFIEX_DEBUG_LEVELenum MWIFIEX_HARDWARE_STATUSenum MWIFIEX_802_11_POWER_MODE
Annotated Snippet
struct mwifiex_dbg {
u32 num_cmd_host_to_card_failure;
u32 num_cmd_sleep_cfm_host_to_card_failure;
u32 num_tx_host_to_card_failure;
u32 num_event_deauth;
u32 num_event_disassoc;
u32 num_event_link_lost;
u32 num_cmd_deauth;
u32 num_cmd_assoc_success;
u32 num_cmd_assoc_failure;
u32 num_tx_timeout;
u16 timeout_cmd_id;
u16 timeout_cmd_act;
u16 last_cmd_id[DBG_CMD_NUM];
u16 last_cmd_act[DBG_CMD_NUM];
u16 last_cmd_index;
u16 last_cmd_resp_id[DBG_CMD_NUM];
u16 last_cmd_resp_index;
u16 last_event[DBG_CMD_NUM];
u16 last_event_index;
u32 last_mp_wr_bitmap[MWIFIEX_DBG_SDIO_MP_NUM];
u32 last_mp_wr_ports[MWIFIEX_DBG_SDIO_MP_NUM];
u32 last_mp_wr_len[MWIFIEX_DBG_SDIO_MP_NUM];
u32 last_mp_curr_wr_port[MWIFIEX_DBG_SDIO_MP_NUM];
u8 last_sdio_mp_index;
};
enum MWIFIEX_HARDWARE_STATUS {
MWIFIEX_HW_STATUS_READY,
MWIFIEX_HW_STATUS_INITIALIZING,
MWIFIEX_HW_STATUS_RESET,
MWIFIEX_HW_STATUS_NOT_READY
};
enum MWIFIEX_802_11_POWER_MODE {
MWIFIEX_802_11_POWER_MODE_CAM,
MWIFIEX_802_11_POWER_MODE_PSP
};
struct mwifiex_tx_param {
u32 next_pkt_len;
};
enum MWIFIEX_PS_STATE {
PS_STATE_AWAKE,
PS_STATE_PRE_SLEEP,
PS_STATE_SLEEP_CFM,
PS_STATE_SLEEP
};
enum mwifiex_iface_type {
MWIFIEX_SDIO,
MWIFIEX_PCIE,
MWIFIEX_USB
};
struct mwifiex_add_ba_param {
u32 tx_win_size;
u32 rx_win_size;
u32 timeout;
u8 tx_amsdu;
u8 rx_amsdu;
};
struct mwifiex_tx_aggr {
u8 ampdu_user;
u8 ampdu_ap;
u8 amsdu;
};
enum mwifiex_ba_status {
BA_SETUP_NONE = 0,
BA_SETUP_INPROGRESS,
BA_SETUP_COMPLETE
};
struct mwifiex_ra_list_tbl {
struct list_head list;
struct sk_buff_head skb_head;
u8 ra[ETH_ALEN];
u32 is_11n_enabled;
u16 max_amsdu;
u16 ba_pkt_count;
u8 ba_packet_thr;
enum mwifiex_ba_status ba_status;
u8 amsdu_in_ampdu;
u16 total_pkt_count;
bool tdls_link;
bool tx_paused;
};
Annotation
- Immediate include surface: `linux/completion.h`, `linux/kernel.h`, `linux/kstrtox.h`, `linux/module.h`, `linux/sched.h`, `linux/semaphore.h`, `linux/ip.h`, `linux/skbuff.h`.
- Detected declarations: `struct mwifiex_adapter`, `struct mwifiex_private`, `struct mwifiex_dbg`, `struct mwifiex_tx_param`, `struct mwifiex_add_ba_param`, `struct mwifiex_tx_aggr`, `struct mwifiex_ra_list_tbl`, `struct mwifiex_tid_tbl`, `struct mwifiex_wmm_desc`, `struct mwifiex_802_11_security`.
- 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.
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.