drivers/gpu/drm/omapdrm/omap_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/omapdrm/omap_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/omapdrm/omap_drv.c- Extension
.c- Size
- 22459 bytes
- Lines
- 910
- 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/dma-mapping.hlinux/platform_device.hlinux/of.hlinux/sort.hlinux/sys_soc.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_bridge.hdrm/drm_bridge_connector.hdrm/drm_drv.hdrm/drm_file.hdrm/drm_ioctl.hdrm/drm_panel.hdrm/drm_prime.hdrm/drm_print.hdrm/drm_probe_helper.hdrm/drm_vblank.homap_dmm_tiler.homap_drv.homap_fbdev.h
Detected Declarations
function Copyrightfunction for_each_new_crtc_in_statefunction omap_atomic_commit_tailfunction drm_atomic_commit_normalized_zpos_cmpfunction omap_atomic_update_normalize_zposfunction for_each_oldnew_crtc_in_statefunction drm_for_each_plane_maskfunction omap_atomic_checkfunction omap_get_existing_global_statefunction omap_get_global_statefunction omap_global_duplicate_statefunction omap_global_destroy_statefunction omap_global_atomic_create_statefunction omap_global_obj_initfunction omap_global_obj_finifunction omap_disconnect_pipelinesfunction omap_connect_pipelinesfunction for_each_dss_outputfunction omap_compare_pipelinesfunction omap_modeset_init_propertiesfunction omap_display_idfunction omap_modeset_initfunction omap_modeset_finifunction ioctl_get_paramfunction ioctl_gem_newfunction ioctl_gem_infofunction dev_openfunction omapdrm_initfunction omapdrm_cleanupfunction pdev_probefunction pdev_removefunction pdev_shutdownfunction omap_drm_suspendfunction omap_drm_resumefunction omap_drm_initfunction omap_drm_finimodule init omap_drm_init
Annotated Snippet
module_init(omap_drm_init);
module_exit(omap_drm_fini);
MODULE_AUTHOR("Rob Clark <rob@ti.com>");
MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>");
MODULE_DESCRIPTION("OMAP DRM Display Driver");
MODULE_ALIAS("platform:" DRIVER_NAME);
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/platform_device.h`, `linux/of.h`, `linux/sort.h`, `linux/sys_soc.h`, `drm/drm_atomic.h`, `drm/drm_atomic_helper.h`, `drm/drm_bridge.h`.
- Detected declarations: `function Copyright`, `function for_each_new_crtc_in_state`, `function omap_atomic_commit_tail`, `function drm_atomic_commit_normalized_zpos_cmp`, `function omap_atomic_update_normalize_zpos`, `function for_each_oldnew_crtc_in_state`, `function drm_for_each_plane_mask`, `function omap_atomic_check`, `function omap_get_existing_global_state`, `function omap_get_global_state`.
- 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.