drivers/char/agp/efficeon-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/efficeon-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/efficeon-agp.c- Extension
.c- Size
- 12499 bytes
- Lines
- 471
- 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/gfp.hlinux/page-flags.hlinux/mm.hasm/cpuid/api.hagp.hintel-agp.h
Detected Declarations
function efficeon_mask_memoryfunction efficeon_fetch_sizefunction efficeon_tlbflushfunction efficeon_cleanupfunction efficeon_configurefunction efficeon_free_gatt_tablefunction efficeon_create_gatt_tablefunction efficeon_insert_memoryfunction efficeon_remove_memoryfunction agp_efficeon_probefunction agp_efficeon_removefunction agp_efficeon_resumefunction agp_efficeon_initfunction agp_efficeon_cleanupmodule init agp_efficeon_init
Annotated Snippet
static struct pci_driver agp_efficeon_pci_driver = {
.name = "agpgart-efficeon",
.id_table = agp_efficeon_pci_table,
.probe = agp_efficeon_probe,
.remove = agp_efficeon_remove,
.driver.pm = &agp_efficeon_pm_ops,
};
static int __init agp_efficeon_init(void)
{
static int agp_initialised=0;
if (agp_off)
return -EINVAL;
if (agp_initialised == 1)
return 0;
agp_initialised=1;
return pci_register_driver(&agp_efficeon_pci_driver);
}
static void __exit agp_efficeon_cleanup(void)
{
pci_unregister_driver(&agp_efficeon_pci_driver);
}
module_init(agp_efficeon_init);
module_exit(agp_efficeon_cleanup);
MODULE_AUTHOR("Carlos Puchol <cpglinux@puchol.com>");
MODULE_DESCRIPTION("Transmeta's Efficeon AGPGART driver");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/agp_backend.h`, `linux/gfp.h`, `linux/page-flags.h`, `linux/mm.h`, `asm/cpuid/api.h`.
- Detected declarations: `function efficeon_mask_memory`, `function efficeon_fetch_size`, `function efficeon_tlbflush`, `function efficeon_cleanup`, `function efficeon_configure`, `function efficeon_free_gatt_table`, `function efficeon_create_gatt_table`, `function efficeon_insert_memory`, `function efficeon_remove_memory`, `function agp_efficeon_probe`.
- 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.