drivers/video/fbdev/fsl-diu-fb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/fsl-diu-fb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/fsl-diu-fb.c- Extension
.c- Size
- 52625 bytes
- Lines
- 1996
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/kernel.hlinux/errno.hlinux/string.hlinux/slab.hlinux/fb.hlinux/init.hlinux/dma-mapping.hlinux/platform_device.hlinux/interrupt.hlinux/clk.hlinux/uaccess.hlinux/vmalloc.hlinux/spinlock.hlinux/of_address.hlinux/of_irq.hsysdev/fsl_soc.hlinux/fsl-diu-fb.hedid.h
Detected Declarations
struct mfb_infostruct fsl_diu_dataenum mfb_indexfunction __attribute__function portfunction wr_reg_wafunction fsl_diu_enable_panelfunction fsl_diu_disable_panelfunction enable_lcdcfunction disable_lcdcfunction adjust_aoi_size_positionfunction fsl_diu_check_varfunction set_fixfunction update_lcdcfunction map_video_memoryfunction unmap_video_memoryfunction fsl_diu_set_aoifunction fsl_diu_get_pixel_formatfunction fsl_diu_load_cursor_imagefunction fsl_diu_cursorfunction fsl_diu_set_parfunction CNVT_TOHWfunction fsl_diu_setcolregfunction Panfunction fsl_diu_ioctlfunction fsl_diu_enable_interruptsfunction fsl_diu_openfunction fsl_diu_releasefunction install_fbfunction uninstall_fbfunction fsl_diu_isrfunction fsl_diu_suspendfunction fsl_diu_resumefunction store_monitorfunction show_monitorfunction fsl_diu_probefunction dma_alloc_coherentfunction fsl_diu_removefunction fsl_diu_setupfunction fsl_diu_initfunction fsl_diu_exitmodule init fsl_diu_init
Annotated Snippet
module_init(fsl_diu_init);
module_exit(fsl_diu_exit);
MODULE_AUTHOR("York Sun <yorksun@freescale.com>");
MODULE_DESCRIPTION("Freescale DIU framebuffer driver");
MODULE_LICENSE("GPL");
module_param_named(mode, fb_mode, charp, 0);
MODULE_PARM_DESC(mode,
"Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" ");
module_param_named(bpp, default_bpp, ulong, 0);
MODULE_PARM_DESC(bpp, "Specify bit-per-pixel if not specified in 'mode'");
module_param_named(monitor, monitor_string, charp, 0);
MODULE_PARM_DESC(monitor, "Specify the monitor port "
"(\"dvi\", \"lvds\", or \"dlvds\") if supported by the platform");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/slab.h`, `linux/fb.h`, `linux/init.h`, `linux/dma-mapping.h`.
- Detected declarations: `struct mfb_info`, `struct fsl_diu_data`, `enum mfb_index`, `function __attribute__`, `function port`, `function wr_reg_wa`, `function fsl_diu_enable_panel`, `function fsl_diu_disable_panel`, `function enable_lcdc`, `function disable_lcdc`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.