drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c- Extension
.c- Size
- 31538 bytes
- Lines
- 1005
- 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/platform_device.hlinux/rtnetlink.hlinux/pci.hmt7915.hmac.hmcu.h../trace.h../dma.h
Detected Declarations
function mt7915_reg_map_l1function mt7915_reg_map_l2function __mt7915_reg_addrfunction __mt7915_reg_remap_addrfunction mt7915_memcpy_fromiofunction mt7915_rrfunction mt7915_wrfunction mt7915_rmwfunction mt7915_mmio_wed_update_rx_statsfunction mt7915_mmio_wed_resetfunction mt7915_mmio_wed_initfunction mt7915_mmio_initfunction mt7915_dual_hif_set_irq_maskfunction mt7915_rx_poll_completefunction mt7915_irq_taskletfunction mt7915_irq_handlerfunction mt7915_initfunction mt7915_exitmodule init mt7915_init
Annotated Snippet
module_init(mt7915_init);
module_exit(mt7915_exit);
MODULE_DESCRIPTION("MediaTek MT7915E MMIO helpers");
MODULE_LICENSE("Dual BSD/GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/platform_device.h`, `linux/rtnetlink.h`, `linux/pci.h`, `mt7915.h`, `mac.h`, `mcu.h`.
- Detected declarations: `function mt7915_reg_map_l1`, `function mt7915_reg_map_l2`, `function __mt7915_reg_addr`, `function __mt7915_reg_remap_addr`, `function mt7915_memcpy_fromio`, `function mt7915_rr`, `function mt7915_wr`, `function mt7915_rmw`, `function mt7915_mmio_wed_update_rx_stats`, `function mt7915_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.