drivers/video/fbdev/geode/gxfb_core.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/geode/gxfb_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/geode/gxfb_core.c- Extension
.c- Size
- 13657 bytes
- Lines
- 544
- 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/module.hlinux/kernel.hlinux/errno.hlinux/string.hlinux/mm.hlinux/delay.hlinux/fb.hlinux/console.hlinux/suspend.hlinux/init.hlinux/pci.hlinux/cs5535.hasm/msr.hasm/olpc.hgxfb.h
Detected Declarations
function get_modedbfunction gxfb_check_varfunction gxfb_set_parfunction chan_to_fieldfunction gxfb_setcolregfunction gxfb_blankfunction gxfb_map_video_memoryfunction gxfb_suspendfunction gxfb_resumefunction gxfb_probefunction gxfb_removefunction gxfb_setupfunction gxfb_initfunction gxfb_cleanupmodule init gxfb_init
Annotated Snippet
static struct pci_driver gxfb_driver = {
.name = "gxfb",
.id_table = gxfb_id_table,
.probe = gxfb_probe,
.remove = gxfb_remove,
.driver.pm = &gxfb_pm_ops,
};
#ifndef MODULE
static int __init gxfb_setup(char *options)
{
char *opt;
if (!options || !*options)
return 0;
while ((opt = strsep(&options, ",")) != NULL) {
if (!*opt)
continue;
mode_option = opt;
}
return 0;
}
#endif
static int __init gxfb_init(void)
{
#ifndef MODULE
char *option = NULL;
#endif
if (fb_modesetting_disabled("gxfb"))
return -ENODEV;
#ifndef MODULE
if (fb_get_options("gxfb", &option))
return -ENODEV;
gxfb_setup(option);
#endif
return pci_register_driver(&gxfb_driver);
}
static void __exit gxfb_cleanup(void)
{
pci_unregister_driver(&gxfb_driver);
}
module_init(gxfb_init);
module_exit(gxfb_cleanup);
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "video mode (<x>x<y>[-<bpp>][@<refr>])");
module_param(vram, int, 0);
MODULE_PARM_DESC(vram, "video memory size");
module_param(vt_switch, int, 0);
MODULE_PARM_DESC(vt_switch, "enable VT switch during suspend/resume");
MODULE_DESCRIPTION("Framebuffer driver for the AMD Geode GX");
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/delay.h`, `linux/fb.h`.
- Detected declarations: `function get_modedb`, `function gxfb_check_var`, `function gxfb_set_par`, `function chan_to_field`, `function gxfb_setcolreg`, `function gxfb_blank`, `function gxfb_map_video_memory`, `function gxfb_suspend`, `function gxfb_resume`, `function gxfb_probe`.
- 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.