drivers/gpu/drm/ingenic/ingenic-drm-drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/ingenic/ingenic-drm-drv.c- Extension
.c- Size
- 47143 bytes
- Lines
- 1682
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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
ingenic-drm.hlinux/bitfield.hlinux/component.hlinux/clk.hlinux/dma-mapping.hlinux/io.hlinux/media-bus-format.hlinux/module.hlinux/mutex.hlinux/of.hlinux/of_reserved_mem.hlinux/platform_device.hlinux/pm.hlinux/regmap.hdrm/clients/drm_client_setup.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_bridge.hdrm/drm_bridge_connector.hdrm/drm_color_mgmt.hdrm/drm_crtc.hdrm/drm_damage_helper.hdrm/drm_drv.hdrm/drm_encoder.hdrm/drm_gem_dma_helper.hdrm/drm_fb_dma_helper.hdrm/drm_fbdev_dma.hdrm/drm_fourcc.hdrm/drm_framebuffer.hdrm/drm_gem_atomic_helper.hdrm/drm_gem_framebuffer_helper.hdrm/drm_managed.h
Detected Declarations
struct ingenic_dma_hwdescstruct ingenic_dma_hwdescsstruct jz_soc_infostruct ingenic_drm_private_statestruct ingenic_drmstruct ingenic_drm_bridgefunction to_ingenic_drm_bridgefunction to_ingenic_drm_priv_statefunction ingenic_drm_get_priv_statefunction ingenic_drm_get_new_priv_statefunction ingenic_drm_writeable_regfunction dma_hwdesc_addrfunction ingenic_drm_update_pixclkfunction ingenic_drm_bridge_atomic_enablefunction ingenic_drm_crtc_atomic_enablefunction ingenic_drm_bridge_atomic_disablefunction ingenic_drm_crtc_atomic_disablefunction ingenic_drm_crtc_update_timingsfunction ingenic_drm_crtc_atomic_checkfunction ingenic_drm_crtc_mode_validfunction ingenic_drm_crtc_atomic_beginfunction ingenic_drm_crtc_atomic_flushfunction ingenic_drm_plane_atomic_checkfunction ingenic_drm_plane_enablefunction ingenic_drm_plane_disablefunction ingenic_drm_plane_atomic_disablefunction ingenic_drm_plane_configfunction ingenic_drm_map_noncoherentfunction ingenic_drm_update_palettefunction ingenic_drm_plane_atomic_updatefunction ingenic_drm_encoder_atomic_mode_setfunction ingenic_drm_bridge_attachfunction ingenic_drm_bridge_atomic_checkfunction ingenic_drm_bridge_atomic_get_input_bus_fmtsfunction ingenic_drm_irq_handlerfunction ingenic_drm_enable_vblankfunction ingenic_drm_disable_vblankfunction ingenic_drm_gem_fb_createfunction ingenic_drm_gem_create_objectfunction ingenic_drm_duplicate_statefunction ingenic_drm_destroy_statefunction ingenic_drm_create_statefunction ingenic_drm_unbind_allfunction ingenic_drm_release_rmemfunction ingenic_drm_configure_hwdescfunction ingenic_drm_configure_hwdesc_palettefunction ingenic_drm_configure_hwdesc_planefunction ingenic_drm_atomic_private_obj_fini
Annotated Snippet
module_init(ingenic_drm_init);
static void ingenic_drm_exit(void)
{
platform_driver_unregister(&ingenic_drm_driver);
if (IS_ENABLED(CONFIG_DRM_INGENIC_IPU))
platform_driver_unregister(ingenic_ipu_driver_ptr);
}
module_exit(ingenic_drm_exit);
MODULE_AUTHOR("Paul Cercueil <paul@crapouillou.net>");
MODULE_DESCRIPTION("DRM driver for the Ingenic SoCs\n");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `ingenic-drm.h`, `linux/bitfield.h`, `linux/component.h`, `linux/clk.h`, `linux/dma-mapping.h`, `linux/io.h`, `linux/media-bus-format.h`, `linux/module.h`.
- Detected declarations: `struct ingenic_dma_hwdesc`, `struct ingenic_dma_hwdescs`, `struct jz_soc_info`, `struct ingenic_drm_private_state`, `struct ingenic_drm`, `struct ingenic_drm_bridge`, `function to_ingenic_drm_bridge`, `function to_ingenic_drm_priv_state`, `function ingenic_drm_get_priv_state`, `function ingenic_drm_get_new_priv_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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.