drivers/char/agp/ati-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/ati-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/ati-agp.c- Extension
.c- Size
- 14715 bytes
- Lines
- 577
- 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/types.hlinux/module.hlinux/pci.hlinux/init.hlinux/string.hlinux/slab.hlinux/agp_backend.hasm/agp.hasm/set_memory.hagp.h
Detected Declarations
struct ati_page_mapfunction ati_create_page_mapfunction ati_free_page_mapfunction ati_free_gatt_pagesfunction ati_create_gatt_pagesfunction is_r200function ati_fetch_sizefunction ati_tlbflushfunction ati_cleanupfunction ati_configurefunction agp_ati_resumefunction ati_insert_memoryfunction ati_remove_memoryfunction ati_create_gatt_tablefunction ati_free_gatt_tablefunction agp_ati_probefunction agp_ati_removefunction agp_ati_initfunction agp_ati_cleanupmodule init agp_ati_init
Annotated Snippet
static struct pci_driver agp_ati_pci_driver = {
.name = "agpgart-ati",
.id_table = agp_ati_pci_table,
.probe = agp_ati_probe,
.remove = agp_ati_remove,
.driver.pm = &agp_ati_pm_ops,
};
static int __init agp_ati_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_ati_pci_driver);
}
static void __exit agp_ati_cleanup(void)
{
pci_unregister_driver(&agp_ati_pci_driver);
}
module_init(agp_ati_init);
module_exit(agp_ati_cleanup);
MODULE_AUTHOR("Dave Jones");
MODULE_DESCRIPTION("ATi AGPGART routines");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/types.h`, `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/string.h`, `linux/slab.h`, `linux/agp_backend.h`, `asm/agp.h`.
- Detected declarations: `struct ati_page_map`, `function ati_create_page_map`, `function ati_free_page_map`, `function ati_free_gatt_pages`, `function ati_create_gatt_pages`, `function is_r200`, `function ati_fetch_size`, `function ati_tlbflush`, `function ati_cleanup`, `function ati_configure`.
- 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.