drivers/net/wireless/marvell/mwl8k.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/marvell/mwl8k.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/marvell/mwl8k.c- Extension
.c- Size
- 159667 bytes
- Lines
- 6450
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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.
- 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/interrupt.hlinux/module.hlinux/kernel.hlinux/sched.hlinux/spinlock.hlinux/list.hlinux/pci.hlinux/delay.hlinux/completion.hlinux/etherdevice.hlinux/slab.hnet/mac80211.hlinux/moduleparam.hlinux/firmware.hlinux/workqueue.h
Detected Declarations
struct rxd_opsstruct mwl8k_device_infostruct mwl8k_rx_queuestruct mwl8k_tx_queuestruct mwl8k_ampdu_streamstruct mwl8k_privstruct mwl8k_vifstruct tx_traffic_infostruct mwl8k_stastruct mwl8k_cmd_pktstruct mwl8k_dma_datastruct mwl8k_rxd_apstruct mwl8k_rxd_stastruct mwl8k_tx_descstruct mwl8k_cmd_get_hw_spec_stastruct mwl8k_cmd_get_hw_spec_apstruct mwl8k_cmd_set_hw_specstruct mwl8k_cmd_mac_multicast_adrstruct mwl8k_cmd_get_statstruct mwl8k_cmd_radio_controlstruct mwl8k_cmd_rf_tx_powerstruct mwl8k_cmd_tx_powerstruct mwl8k_cmd_rf_antennastruct mwl8k_cmd_set_beaconstruct mwl8k_cmd_set_pre_scanstruct mwl8k_cmd_bbp_reg_accessstruct mwl8k_cmd_set_post_scanstruct mwl8k_cmd_set_rf_channelstruct mwl8k_cmd_update_set_aidstruct mwl8k_cmd_set_ratestruct mwl8k_cmd_finalize_joinstruct mwl8k_cmd_set_rts_thresholdstruct mwl8k_cmd_set_slotstruct mwl8k_cmd_set_edca_paramsstruct mwl8k_cmd_set_wmm_modestruct mwl8k_cmd_mimo_configstruct mwl8k_cmd_use_fixed_rate_stastruct mwl8k_cmd_use_fixed_rate_apstruct mwl8k_rate_entry_apstruct mwl8k_cmd_enable_snifferstruct mwl8k_cmd_update_mac_addrstruct mwl8k_cmd_set_rate_adapt_modestruct mwl8k_cmd_get_watchdog_bitmapstruct mwl8k_cmd_bss_startstruct mwl8k_create_ba_streamstruct mwl8k_destroy_ba_streamstruct mwl8k_cmd_bastreamstruct mwl8k_cmd_set_new_stn
Annotated Snippet
static struct pci_driver mwl8k_driver = {
.name = MWL8K_NAME,
.id_table = mwl8k_pci_id_table,
.probe = mwl8k_probe,
.remove = mwl8k_remove,
};
module_pci_driver(mwl8k_driver);
MODULE_DESCRIPTION(MWL8K_DESC);
MODULE_VERSION(MWL8K_VERSION);
MODULE_AUTHOR("Lennert Buytenhek <buytenh@marvell.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/module.h`, `linux/kernel.h`, `linux/sched.h`, `linux/spinlock.h`, `linux/list.h`, `linux/pci.h`, `linux/delay.h`.
- Detected declarations: `struct rxd_ops`, `struct mwl8k_device_info`, `struct mwl8k_rx_queue`, `struct mwl8k_tx_queue`, `struct mwl8k_ampdu_stream`, `struct mwl8k_priv`, `struct mwl8k_vif`, `struct tx_traffic_info`, `struct mwl8k_sta`, `struct mwl8k_cmd_pkt`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern 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.