drivers/video/fbdev/sstfb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/sstfb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/sstfb.c- Extension
.c- Size
- 44520 bytes
- Lines
- 1544
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/aperture.hlinux/string.hlinux/kernel.hlinux/module.hlinux/fb.hlinux/pci.hlinux/delay.hlinux/init.hasm/io.hlinux/uaccess.hvideo/sstfb.h
Detected Declarations
function sst_dbg_print_read_regfunction sst_dbg_print_write_regfunction __sst_readfunction __sst_writefunction __sst_set_bitsfunction __sst_unset_bitsfunction __sst_wait_idlefunction __sst_dac_readfunction __sst_dac_writefunction __dac_i_readfunction __dac_i_writefunction sst_calc_pllfunction sstfb_clear_screenfunction sstfb_check_varfunction sstfb_set_parfunction sstfb_setcolregfunction sstfb_setvgapassfunction store_vgapassfunction show_vgapassfunction sstfb_ioctlfunction sstfb_copyareafunction commandfunction sst_get_memsizefunction sst_detect_attfunction sst_detect_tifunction bytefunction sst_set_pll_att_tifunction sst_set_pll_icsfunction sst_set_vidmod_att_tifunction sst_set_vidmod_icsfunction sst_detect_dactypefunction sst_initfunction sst_shutdownfunction sstfb_setupfunction sstfb_probefunction sstfb_removefunction sstfb_initfunction sstfb_exitmodule init sstfb_init
Annotated Snippet
static struct pci_driver sstfb_driver = {
.name = "sstfb",
.id_table = sstfb_id_tbl,
.probe = sstfb_probe,
.remove = sstfb_remove,
};
static int sstfb_init(void)
{
char *option = NULL;
if (fb_modesetting_disabled("sstfb"))
return -ENODEV;
if (fb_get_options("sstfb", &option))
return -ENODEV;
sstfb_setup(option);
return pci_register_driver(&sstfb_driver);
}
static void sstfb_exit(void)
{
pci_unregister_driver(&sstfb_driver);
}
module_init(sstfb_init);
module_exit(sstfb_exit);
MODULE_AUTHOR("(c) 2000,2002 Ghozlane Toumi <gtoumi@laposte.net>");
MODULE_DESCRIPTION("FBDev driver for 3dfx Voodoo Graphics and Voodoo2 based video boards");
MODULE_LICENSE("GPL");
module_param(mem, int, 0);
MODULE_PARM_DESC(mem, "Size of frame buffer memory in MB (1, 2, 4 MB, default=autodetect)");
module_param(vgapass, bool, 0);
MODULE_PARM_DESC(vgapass, "Enable VGA PassThrough mode (0 or 1) (default=0)");
module_param(clipping, bool, 0);
MODULE_PARM_DESC(clipping, "Enable clipping (slower, safer) (0 or 1) (default=1)");
module_param(gfxclk, int, 0);
MODULE_PARM_DESC(gfxclk, "Force graphic chip frequency in MHz. DANGEROUS. (default=auto)");
module_param(slowpci, bool, 0);
MODULE_PARM_DESC(slowpci, "Uses slow PCI settings (0 or 1) (default=0)");
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "Initial video mode (default=" DEFAULT_VIDEO_MODE ")");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/string.h`, `linux/kernel.h`, `linux/module.h`, `linux/fb.h`, `linux/pci.h`, `linux/delay.h`, `linux/init.h`.
- Detected declarations: `function sst_dbg_print_read_reg`, `function sst_dbg_print_write_reg`, `function __sst_read`, `function __sst_write`, `function __sst_set_bits`, `function __sst_unset_bits`, `function __sst_wait_idle`, `function __sst_dac_read`, `function __sst_dac_write`, `function __dac_i_read`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: pattern implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
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.