drivers/bus/imx-weim.c
Source file repositories/reference/linux-study-clean/drivers/bus/imx-weim.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/bus/imx-weim.c- Extension
.c- Size
- 9725 bytes
- Lines
- 405
- Domain
- Driver Families
- Bucket
- drivers/bus
- 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/clk.hlinux/io.hlinux/of_address.hlinux/of.hlinux/of_platform.hlinux/platform_device.hlinux/property.hlinux/mfd/syscon.hlinux/mfd/syscon/imx6q-iomuxc-gpr.hlinux/regmap.h
Detected Declarations
struct imx_weim_devtypestruct cs_timingstruct cs_timing_statestruct weim_privfunction imx_weim_gpr_setupfunction for_each_of_rangefunction weim_timing_setupfunction weim_parse_dtfunction for_each_available_child_of_nodefunction weim_probefunction of_weim_notifyfunction weim_initfunction weim_exitmodule init weim_init
Annotated Snippet
module_init(weim_init);
static void __exit weim_exit(void)
{
#if IS_ENABLED(CONFIG_OF_DYNAMIC)
of_reconfig_notifier_unregister(&weim_of_notifier);
#endif /* IS_ENABLED(CONFIG_OF_DYNAMIC) */
return platform_driver_unregister(&weim_driver);
}
module_exit(weim_exit);
MODULE_AUTHOR("Freescale Semiconductor Inc.");
MODULE_DESCRIPTION("i.MX EIM Controller Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/clk.h`, `linux/io.h`, `linux/of_address.h`, `linux/of.h`, `linux/of_platform.h`, `linux/platform_device.h`, `linux/property.h`.
- Detected declarations: `struct imx_weim_devtype`, `struct cs_timing`, `struct cs_timing_state`, `struct weim_priv`, `function imx_weim_gpr_setup`, `function for_each_of_range`, `function weim_timing_setup`, `function weim_parse_dt`, `function for_each_available_child_of_node`, `function weim_probe`.
- Atlas domain: Driver Families / drivers/bus.
- 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.