drivers/char/agp/sis-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/sis-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/sis-agp.c- Extension
.c- Size
- 11168 bytes
- Lines
- 438
- Domain
- Driver Families
- Bucket
- drivers/char
- 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/module.hlinux/pci.hlinux/init.hlinux/agp_backend.hlinux/delay.hagp.h
Detected Declarations
function sis_fetch_sizefunction sis_tlbflushfunction sis_configurefunction sis_cleanupfunction sis_delayed_enablefunction for_each_pci_devfunction sis_get_driverfunction agp_sis_probefunction agp_sis_removefunction agp_sis_resumefunction agp_sis_initfunction agp_sis_cleanupmodule init agp_sis_init
Annotated Snippet
static struct pci_driver agp_sis_pci_driver = {
.name = "agpgart-sis",
.id_table = agp_sis_pci_table,
.probe = agp_sis_probe,
.remove = agp_sis_remove,
.driver.pm = &agp_sis_pm_ops,
};
static int __init agp_sis_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_sis_pci_driver);
}
static void __exit agp_sis_cleanup(void)
{
pci_unregister_driver(&agp_sis_pci_driver);
}
module_init(agp_sis_init);
module_exit(agp_sis_cleanup);
module_param(agp_sis_force_delay, bool, 0);
MODULE_PARM_DESC(agp_sis_force_delay,"forces sis delay hack");
module_param(agp_sis_agp_spec, int, 0);
MODULE_PARM_DESC(agp_sis_agp_spec,"0=force sis init, 1=force generic agp3 init, default: autodetect");
MODULE_DESCRIPTION("SiS AGPGART routines");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/agp_backend.h`, `linux/delay.h`, `agp.h`.
- Detected declarations: `function sis_fetch_size`, `function sis_tlbflush`, `function sis_configure`, `function sis_cleanup`, `function sis_delayed_enable`, `function for_each_pci_dev`, `function sis_get_driver`, `function agp_sis_probe`, `function agp_sis_remove`, `function agp_sis_resume`.
- Atlas domain: Driver Families / drivers/char.
- 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.