drivers/gpu/drm/imx/dc/dc-drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/imx/dc/dc-drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/imx/dc/dc-drv.c- Extension
.c- Size
- 6299 bytes
- Lines
- 294
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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.
- 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/clk.hlinux/component.hlinux/device.hlinux/dma-mapping.hlinux/mod_devicetable.hlinux/module.hlinux/of.hlinux/of_platform.hlinux/platform_device.hlinux/pm.hlinux/pm_runtime.hdrm/clients/drm_client_setup.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_fbdev_dma.hdrm/drm_fourcc.hdrm/drm_gem_dma_helper.hdrm/drm_managed.hdrm/drm_modeset_helper.hdrm/drm_of.hdc-de.hdc-drv.hdc-pe.h
Detected Declarations
struct dc_privfunction dc_add_componentsfunction for_each_available_child_of_nodefunction dc_drm_component_bind_allfunction dc_drm_component_unbind_allfunction dc_drm_bindfunction dc_drm_unbindfunction dc_probefunction dc_removefunction dc_runtime_suspendfunction dc_runtime_resumefunction dc_suspendfunction dc_resumefunction dc_shutdownfunction dc_drm_initfunction dc_drm_exitmodule init dc_drm_init
Annotated Snippet
module_init(dc_drm_init);
module_exit(dc_drm_exit);
MODULE_DESCRIPTION("i.MX8 Display Controller DRM Driver");
MODULE_AUTHOR("Liu Ying <victor.liu@nxp.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/component.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/mod_devicetable.h`, `linux/module.h`, `linux/of.h`, `linux/of_platform.h`.
- Detected declarations: `struct dc_priv`, `function dc_add_components`, `function for_each_available_child_of_node`, `function dc_drm_component_bind_all`, `function dc_drm_component_unbind_all`, `function dc_drm_bind`, `function dc_drm_unbind`, `function dc_probe`, `function dc_remove`, `function dc_runtime_suspend`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.