drivers/video/fbdev/cyber2000fb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/cyber2000fb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/cyber2000fb.c- Extension
.c- Size
- 45886 bytes
- Lines
- 1872
- 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.
- 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/aperture.hlinux/module.hlinux/kernel.hlinux/errno.hlinux/string.hlinux/mm.hlinux/slab.hlinux/delay.hlinux/fb.hlinux/pci.hlinux/init.hlinux/io.hlinux/i2c.hlinux/i2c-algo-bit.hasm/mach-types.hcyber2000fb.h
Detected Declarations
struct cfb_infostruct par_infofunction cyber2000_crtcwfunction cyber2000_grphwfunction cyber2000_grphrfunction cyber2000_attrwfunction cyber2000_seqwfunction cyber2000fb_fillrectfunction cyber2000fb_copyareafunction cyber2000fb_syncfunction convert_bitfieldfunction cyber2000fb_setcolregfunction cyber2000fb_write_ramdac_ctrlfunction cyber2000fb_set_timingfunction cyber2000fb_update_startfunction cyber2000fb_decode_crtcfunction cyber2000fb_decode_clockfunction cyber2000fb_check_varfunction cyber2000fb_set_parfunction cyber2000fb_pan_displayfunction cyber2000fb_blankfunction cyber2000fb_enable_extregsfunction cyber2000fb_disable_extregsfunction cyber2000fb_enable_ddcfunction cyber2000fb_disable_ddcfunction cyber2000fb_ddc_setsclfunction cyber2000fb_ddc_setsdafunction cyber2000fb_ddc_getsclfunction cyber2000fb_ddc_getsdafunction cyber2000fb_setup_ddc_busfunction cyber2000fb_i2c_setsdafunction cyber2000fb_i2c_setsclfunction cyber2000fb_i2c_getsdafunction cyber2000fb_i2c_getsclfunction cyber2000fb_i2c_registerfunction cyber2000fb_i2c_unregisterfunction cyberpro_init_hwfunction cyberpro_free_fb_infofunction cyber2000fb_setupfunction cyberpro_common_probefunction cyberpro_common_removefunction cyberpro_common_resumefunction cyberpro_pci_enable_mmiofunction cyberpro_pci_probefunction cyberpro_pci_removefunction cyberpro_pci_suspendfunction cyberpro_pci_resumefunction cyber2000fb_init
Annotated Snippet
static struct pci_driver cyberpro_driver = {
.name = "CyberPro",
.probe = cyberpro_pci_probe,
.remove = cyberpro_pci_remove,
.driver.pm = &cyberpro_pci_pm_ops,
.id_table = cyberpro_pci_table
};
/*
* I don't think we can use the "module_init" stuff here because
* the fbcon stuff may not be initialised yet. Hence the #ifdef
* around module_init.
*
* Tony: "module_init" is now required
*/
static int __init cyber2000fb_init(void)
{
int ret = -1, err;
#ifndef MODULE
char *option = NULL;
#endif
if (fb_modesetting_disabled("CyberPro"))
return -ENODEV;
#ifndef MODULE
if (fb_get_options("cyber2000fb", &option))
return -ENODEV;
cyber2000fb_setup(option);
#endif
err = pci_register_driver(&cyberpro_driver);
if (!err)
ret = 0;
return ret ? err : 0;
}
module_init(cyber2000fb_init);
static void __exit cyberpro_exit(void)
{
pci_unregister_driver(&cyberpro_driver);
}
module_exit(cyberpro_exit);
MODULE_AUTHOR("Russell King");
MODULE_DESCRIPTION("CyberPro 2000, 2010 and 5000 framebuffer driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/mm.h`, `linux/slab.h`, `linux/delay.h`.
- Detected declarations: `struct cfb_info`, `struct par_info`, `function cyber2000_crtcw`, `function cyber2000_grphw`, `function cyber2000_grphr`, `function cyber2000_attrw`, `function cyber2000_seqw`, `function cyber2000fb_fillrect`, `function cyber2000fb_copyarea`, `function cyber2000fb_sync`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: pattern 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.