drivers/video/fbdev/carminefb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/carminefb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/carminefb.c- Extension
.c- Size
- 22674 bytes
- Lines
- 794
- Domain
- Driver Families
- Bucket
- drivers/video
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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/aperture.hlinux/delay.hlinux/errno.hlinux/fb.hlinux/interrupt.hlinux/pci.hlinux/slab.hlinux/module.hcarminefb.hcarminefb_regs.h
Detected Declarations
struct carmine_hwstruct carmine_resolutionstruct carmine_fbfunction carmine_find_modefunction c_set_disp_regfunction c_get_disp_regfunction c_set_hw_regfunction c_get_hw_regfunction carmine_setcolregfunction carmine_check_varfunction carmine_init_display_paramfunction set_display_parametersfunction carmine_set_parfunction init_hardwarefunction alloc_carmine_fbfunction cleanup_fb_devicefunction carminefb_probefunction carminefb_removefunction carminefb_initfunction carminefb_cleanupmodule init carminefb_init
Annotated Snippet
static struct pci_driver carmine_pci_driver = {
.name = "carminefb",
.id_table = carmine_devices,
.probe = carminefb_probe,
.remove = carminefb_remove,
};
static int __init carminefb_init(void)
{
if (fb_modesetting_disabled("carminefb"))
return -ENODEV;
if (!(fb_displays &
(CARMINE_USE_DISPLAY0 | CARMINE_USE_DISPLAY1))) {
printk(KERN_ERR "If you disable both displays than you don't "
"need the driver at all\n");
return -EINVAL;
}
return pci_register_driver(&carmine_pci_driver);
}
module_init(carminefb_init);
static void __exit carminefb_cleanup(void)
{
pci_unregister_driver(&carmine_pci_driver);
}
module_exit(carminefb_cleanup);
MODULE_AUTHOR("Sebastian Siewior <bigeasy@linutronix.de>");
MODULE_DESCRIPTION("Framebuffer driver for Fujitsu Carmine based devices");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/delay.h`, `linux/errno.h`, `linux/fb.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/slab.h`, `linux/module.h`.
- Detected declarations: `struct carmine_hw`, `struct carmine_resolution`, `struct carmine_fb`, `function carmine_find_mode`, `function c_set_disp_reg`, `function c_get_disp_reg`, `function c_set_hw_reg`, `function c_get_hw_reg`, `function carmine_setcolreg`, `function carmine_check_var`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: pattern implementation candidate.
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.