drivers/video/fbdev/gxt4500.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/gxt4500.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/gxt4500.c- Extension
.c- Size
- 22375 bytes
- Lines
- 802
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/aperture.hlinux/kernel.hlinux/module.hlinux/fb.hlinux/console.hlinux/pci.hlinux/pci_ids.hlinux/delay.hlinux/string.h
Detected Declarations
struct gxt4500_parenum gxt_cardsfunction calc_pllfunction calc_pixclockfunction gxt4500_var_to_parfunction gxt4500_unpack_pixfmtfunction gxt4500_check_varfunction gxt4500_set_parfunction gxt4500_setcolregfunction gxt4500_pan_displayfunction gxt4500_blankfunction gxt4500_probefunction gxt4500_removefunction gxt4500_initfunction gxt4500_exitmodule init gxt4500_init
Annotated Snippet
static struct pci_driver gxt4500_driver = {
.name = "gxt4500",
.id_table = gxt4500_pci_tbl,
.probe = gxt4500_probe,
.remove = gxt4500_remove,
};
static int gxt4500_init(void)
{
if (fb_modesetting_disabled("gxt4500"))
return -ENODEV;
#ifndef MODULE
if (fb_get_options("gxt4500", &mode_option))
return -ENODEV;
#endif
return pci_register_driver(&gxt4500_driver);
}
module_init(gxt4500_init);
static void __exit gxt4500_exit(void)
{
pci_unregister_driver(&gxt4500_driver);
}
module_exit(gxt4500_exit);
MODULE_AUTHOR("Paul Mackerras <paulus@samba.org>");
MODULE_DESCRIPTION("FBDev driver for IBM GXT4500P/6500P and GXT4000P/6000P");
MODULE_LICENSE("GPL");
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\"");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/kernel.h`, `linux/module.h`, `linux/fb.h`, `linux/console.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/delay.h`.
- Detected declarations: `struct gxt4500_par`, `enum gxt_cards`, `function calc_pll`, `function calc_pixclock`, `function gxt4500_var_to_par`, `function gxt4500_unpack_pixfmt`, `function gxt4500_check_var`, `function gxt4500_set_par`, `function gxt4500_setcolreg`, `function gxt4500_pan_display`.
- 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.