drivers/net/ethernet/ti/davinci_mdio.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/ti/davinci_mdio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/ti/davinci_mdio.c- Extension
.c- Size
- 17791 bytes
- Lines
- 769
- 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.
- 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/module.hlinux/kernel.hlinux/platform_device.hlinux/delay.hlinux/sched.hlinux/slab.hlinux/phy.hlinux/clk.hlinux/err.hlinux/io.hlinux/iopoll.hlinux/pm_runtime.hlinux/davinci_emac.hlinux/of.hlinux/of_mdio.hlinux/pinctrl/consumer.hlinux/mdio-bitbang.hlinux/sys_soc.h
Detected Declarations
struct davinci_mdio_of_paramstruct davinci_mdio_regsstruct davinci_mdio_datastruct k3_mdio_soc_datafunction davinci_mdio_init_clkfunction davinci_mdio_enablefunction davinci_mdio_disablefunction davinci_mdio_enable_manual_modefunction davinci_set_mdcfunction davinci_set_mdio_dirfunction davinci_set_mdio_datafunction davinci_get_mdio_datafunction davinci_mdiobb_read_c22function davinci_mdiobb_write_c22function davinci_mdiobb_read_c45function davinci_mdiobb_write_c45function davinci_mdio_common_resetfunction davinci_mdio_resetfunction davinci_mdiobb_resetfunction wait_for_user_accessfunction wait_for_idlefunction davinci_mdio_readfunction davinci_mdio_writefunction davinci_mdio_probe_dtfunction davinci_mdio_probefunction davinci_mdio_removefunction davinci_mdio_runtime_suspendfunction davinci_mdio_runtime_resumefunction davinci_mdio_suspendfunction davinci_mdio_resumefunction davinci_mdio_initfunction davinci_mdio_exitmodule init davinci_mdio_init
Annotated Snippet
device_initcall(davinci_mdio_init);
static void __exit davinci_mdio_exit(void)
{
platform_driver_unregister(&davinci_mdio_driver);
}
module_exit(davinci_mdio_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("DaVinci MDIO driver");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/platform_device.h`, `linux/delay.h`, `linux/sched.h`, `linux/slab.h`, `linux/phy.h`, `linux/clk.h`.
- Detected declarations: `struct davinci_mdio_of_param`, `struct davinci_mdio_regs`, `struct davinci_mdio_data`, `struct k3_mdio_soc_data`, `function davinci_mdio_init_clk`, `function davinci_mdio_enable`, `function davinci_mdio_disable`, `function davinci_mdio_enable_manual_mode`, `function davinci_set_mdc`, `function davinci_set_mdio_dir`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration implementation candidate.
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.