drivers/gpu/ipu-v3/ipu-common.c
Source file repositories/reference/linux-study-clean/drivers/gpu/ipu-v3/ipu-common.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/ipu-v3/ipu-common.c- Extension
.c- Size
- 35703 bytes
- Lines
- 1459
- 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/module.hlinux/export.hlinux/types.hlinux/reset.hlinux/platform_device.hlinux/err.hlinux/spinlock.hlinux/delay.hlinux/interrupt.hlinux/io.hlinux/clk.hlinux/list.hlinux/irq.hlinux/irqchip/chained_irq.hlinux/irqdomain.hlinux/of.hlinux/of_graph.hdrm/drm_fourcc.hvideo/imx-ipu-v3.hipu-prv.h
Detected Declarations
struct fsu_link_reg_infostruct fsu_link_infostruct ipu_devtypestruct ipu_platform_regfunction Copyrightfunction ipu_cm_writefunction ipu_get_numfunction ipu_srm_dp_updatefunction ipu_drm_fourcc_to_colorspacefunction ipu_pixelformat_to_colorspacefunction ipu_degrees_to_rot_modefunction list_for_each_entryfunction ipu_idmac_putfunction enablefunction ipu_idmac_set_double_bufferfunction ipu_idmac_lock_enablefunction ipu_module_enablefunction ipu_module_disablefunction ipu_idmac_get_current_bufferfunction ipu_idmac_buffer_is_readyfunction ipu_idmac_select_bufferfunction ipu_idmac_clear_bufferfunction ipu_idmac_enable_channelfunction ipu_idmac_wait_busyfunction idma_maskfunction ipu_idmac_disable_channelfunction effectfunction ipu_memory_resetfunction ipu_set_csi_src_muxfunction ipu_set_ic_src_muxfunction ipu_fsu_linkfunction ipu_fsu_unlinkfunction ipu_idmac_linkfunction ipu_idmac_unlinkfunction ipu_submodules_initfunction ipu_irq_handlefunction ipu_irq_handlerfunction ipu_err_irq_handlerfunction ipu_map_irqfunction ipu_idmac_channel_irqfunction ipu_submodules_exitfunction platform_remove_devices_fnfunction platform_device_unregister_childrenfunction ipu_add_client_devicesfunction ipu_irq_initfunction ipu_irq_exitfunction ipu_dumpfunction ipu_probe
Annotated Snippet
module_init(imx_ipu_init);
static void __exit imx_ipu_exit(void)
{
platform_unregister_drivers(drivers, ARRAY_SIZE(drivers));
}
module_exit(imx_ipu_exit);
MODULE_ALIAS("platform:imx-ipuv3");
MODULE_DESCRIPTION("i.MX IPU v3 driver");
MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/export.h`, `linux/types.h`, `linux/reset.h`, `linux/platform_device.h`, `linux/err.h`, `linux/spinlock.h`, `linux/delay.h`.
- Detected declarations: `struct fsu_link_reg_info`, `struct fsu_link_info`, `struct ipu_devtype`, `struct ipu_platform_reg`, `function Copyright`, `function ipu_cm_write`, `function ipu_get_num`, `function ipu_srm_dp_update`, `function ipu_drm_fourcc_to_colorspace`, `function ipu_pixelformat_to_colorspace`.
- 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.