drivers/net/wireless/mediatek/mt76/mt7996/mmio.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/mediatek/mt76/mt7996/mmio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/mediatek/mt76/mt7996/mmio.c- Extension
.c- Size
- 28443 bytes
- Lines
- 893
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/pci.hlinux/rtnetlink.hmt7996.hmac.hmcu.h../trace.h../dma.h
Detected Declarations
function mt7996_reg_map_l1function mt7996_reg_map_l2function mt7996_reg_map_cbtopfunction __mt7996_reg_addrfunction __mt7996_reg_remap_addrfunction mt7996_memcpy_fromiofunction mt7996_rrfunction mt7996_wrfunction mt7996_rmwfunction mt7996_mmio_wed_resetfunction mt7996_mmio_wed_initfunction mt7996_mmio_initfunction mt7996_dual_hif_set_irq_maskfunction mt7996_rx_poll_completefunction mt7996_irq_taskletfunction mt7996_irq_handlerfunction mt7996_initfunction mt7996_exitmodule init mt7996_init
Annotated Snippet
module_init(mt7996_init);
module_exit(mt7996_exit);
MODULE_DESCRIPTION("MediaTek MT7996 MMIO helpers");
MODULE_LICENSE("Dual BSD/GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/rtnetlink.h`, `mt7996.h`, `mac.h`, `mcu.h`, `../trace.h`.
- Detected declarations: `function mt7996_reg_map_l1`, `function mt7996_reg_map_l2`, `function mt7996_reg_map_cbtop`, `function __mt7996_reg_addr`, `function __mt7996_reg_remap_addr`, `function mt7996_memcpy_fromio`, `function mt7996_rr`, `function mt7996_wr`, `function mt7996_rmw`, `function mt7996_mmio_wed_reset`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration 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.