drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c- Extension
.c- Size
- 9875 bytes
- Lines
- 388
- 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.
- 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/bits.hlinux/delay.hlinux/dev_printk.hlinux/io.hlinux/iopoll.hlinux/module.hlinux/pci.hlinux/slab.hlinux/stmmac.hdwmac4.hstmmac.hstmmac_libpci.h
Detected Declarations
struct motorcomm_efuse_patchstruct dwmac_motorcomm_privfunction motorcomm_efuse_read_bytefunction motorcomm_efuse_read_patchfunction motorcomm_efuse_get_patch_valuefunction motorcomm_efuse_read_macfunction motorcomm_deassert_mdio_phy_resetfunction motorcomm_resetfunction motorcomm_initfunction motorcomm_resumefunction motorcomm_default_plat_datafunction motorcomm_free_irqfunction motorcomm_setup_irqfunction motorcomm_probefunction motorcomm_remove
Annotated Snippet
static struct pci_driver dwmac_motorcomm_pci_driver = {
.name = DRIVER_NAME,
.id_table = dwmac_motorcomm_pci_id_table,
.probe = motorcomm_probe,
.remove = motorcomm_remove,
.driver = {
.pm = &stmmac_simple_pm_ops,
},
};
module_pci_driver(dwmac_motorcomm_pci_driver);
MODULE_DESCRIPTION("DWMAC glue driver for Motorcomm PCI Ethernet controllers");
MODULE_AUTHOR("Yao Zi <me@ziyao.cc>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bits.h`, `linux/delay.h`, `linux/dev_printk.h`, `linux/io.h`, `linux/iopoll.h`, `linux/module.h`, `linux/pci.h`, `linux/slab.h`.
- Detected declarations: `struct motorcomm_efuse_patch`, `struct dwmac_motorcomm_priv`, `function motorcomm_efuse_read_byte`, `function motorcomm_efuse_read_patch`, `function motorcomm_efuse_get_patch_value`, `function motorcomm_efuse_read_mac`, `function motorcomm_deassert_mdio_phy_reset`, `function motorcomm_reset`, `function motorcomm_init`, `function motorcomm_resume`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
- 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.