drivers/gpu/drm/armada/armada_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/armada/armada_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/armada/armada_drv.c- Extension
.c- Size
- 7064 bytes
- Lines
- 288
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/aperture.hlinux/clk.hlinux/component.hlinux/module.hlinux/of.hlinux/of_graph.hlinux/platform_device.hdrm/clients/drm_client_setup.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_ioctl.hdrm/drm_managed.hdrm/drm_prime.hdrm/drm_probe_helper.hdrm/drm_of.hdrm/drm_vblank.harmada_crtc.harmada_drm.harmada_gem.harmada_fb.harmada_hw.hdrm/armada_drm.harmada_ioctlP.h
Detected Declarations
function armada_drm_bindfunction armada_drm_unbindfunction armada_add_endpointsfunction for_each_endpoint_of_nodefunction armada_drm_probefunction armada_drm_removefunction armada_drm_shutdownfunction armada_drm_initfunction armada_drm_exitmodule init armada_drm_init
Annotated Snippet
module_init(armada_drm_init);
static void __exit armada_drm_exit(void)
{
platform_driver_unregister(&armada_drm_platform_driver);
platform_driver_unregister(&armada_lcd_platform_driver);
}
module_exit(armada_drm_exit);
MODULE_AUTHOR("Russell King <rmk+kernel@armlinux.org.uk>");
MODULE_DESCRIPTION("Armada DRM Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:armada-drm");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/clk.h`, `linux/component.h`, `linux/module.h`, `linux/of.h`, `linux/of_graph.h`, `linux/platform_device.h`, `drm/clients/drm_client_setup.h`.
- Detected declarations: `function armada_drm_bind`, `function armada_drm_unbind`, `function armada_add_endpoints`, `function for_each_endpoint_of_node`, `function armada_drm_probe`, `function armada_drm_remove`, `function armada_drm_shutdown`, `function armada_drm_init`, `function armada_drm_exit`, `module init armada_drm_init`.
- 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.