drivers/video/fbdev/asiliantfb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/asiliantfb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/asiliantfb.c- Extension
.c- Size
- 16994 bytes
- Lines
- 633
- 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/module.hlinux/kernel.hlinux/errno.hlinux/string.hlinux/mm.hlinux/vmalloc.hlinux/delay.hlinux/interrupt.hlinux/fb.hlinux/init.hlinux/pci.hasm/io.h
Detected Declarations
struct chips_init_regfunction mm_write_xrfunction mm_write_frfunction mm_write_crfunction mm_write_grfunction mm_write_srfunction mm_write_arfunction asiliant_calc_dclk2function asiliant_set_timingfunction asiliantfb_check_varfunction asiliantfb_set_parfunction asiliantfb_setcolregfunction chips_hw_initfunction init_asiliantfunction asiliantfb_pci_initfunction asiliantfb_removefunction asiliantfb_initfunction asiliantfb_exitmodule init asiliantfb_init
Annotated Snippet
static struct pci_driver asiliantfb_driver = {
.name = "asiliantfb",
.id_table = asiliantfb_pci_tbl,
.probe = asiliantfb_pci_init,
.remove = asiliantfb_remove,
};
static int __init asiliantfb_init(void)
{
if (fb_modesetting_disabled("asiliantfb"))
return -ENODEV;
if (fb_get_options("asiliantfb", NULL))
return -ENODEV;
return pci_register_driver(&asiliantfb_driver);
}
module_init(asiliantfb_init);
static void __exit asiliantfb_exit(void)
{
pci_unregister_driver(&asiliantfb_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/vmalloc.h`, `linux/delay.h`.
- Detected declarations: `struct chips_init_reg`, `function mm_write_xr`, `function mm_write_fr`, `function mm_write_cr`, `function mm_write_gr`, `function mm_write_sr`, `function mm_write_ar`, `function asiliant_calc_dclk2`, `function asiliant_set_timing`, `function asiliantfb_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.