drivers/video/fbdev/mmp/hw/mmp_ctrl.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/mmp/hw/mmp_ctrl.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/mmp/hw/mmp_ctrl.c- Extension
.c- Size
- 15161 bytes
- Lines
- 578
- Domain
- Driver Families
- Bucket
- drivers/video
- 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
linux/module.hlinux/moduleparam.hlinux/kernel.hlinux/errno.hlinux/string.hlinux/interrupt.hlinux/slab.hlinux/delay.hlinux/platform_device.hlinux/dma-mapping.hlinux/clk.hlinux/err.hlinux/vmalloc.hlinux/uaccess.hlinux/kthread.hlinux/io.hmmp_ctrl.h
Detected Declarations
function Copyrightfunction fmt_to_regfunction dmafetch_set_fmtfunction overlay_set_winfunction dmafetch_onofffunction path_enabledisablefunction path_onofffunction overlay_set_onofffunction overlay_set_fetchfunction overlay_set_addrfunction path_set_modefunction ctrl_set_defaultfunction path_set_defaultfunction path_initfunction path_deinitfunction mmphw_probefunction resource_sizefunction mmphw_initmodule init mmphw_init
Annotated Snippet
module_init(mmphw_init);
MODULE_AUTHOR("Li Guoqing<ligq@marvell.com>");
MODULE_DESCRIPTION("Framebuffer driver for mmp");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/interrupt.h`, `linux/slab.h`, `linux/delay.h`.
- Detected declarations: `function Copyright`, `function fmt_to_reg`, `function dmafetch_set_fmt`, `function overlay_set_win`, `function dmafetch_onoff`, `function path_enabledisable`, `function path_onoff`, `function overlay_set_onoff`, `function overlay_set_fetch`, `function overlay_set_addr`.
- Atlas domain: Driver Families / drivers/video.
- 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.