drivers/char/agp/uninorth-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/uninorth-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/uninorth-agp.c- Extension
.c- Size
- 18591 bytes
- Lines
- 729
- 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/of.hlinux/pci.hlinux/slab.hlinux/init.hlinux/pagemap.hlinux/agp_backend.hlinux/delay.hlinux/vmalloc.hasm/uninorth.hasm/prom.hasm/pmac_feature.hagp.h
Detected Declarations
function uninorth_fetch_sizefunction uninorth_tlbflushfunction uninorth_cleanupfunction uninorth_configurefunction uninorth_insert_memoryfunction uninorth_remove_memoryfunction uninorth_agp_enablefunction agp_uninorth_suspendfunction agp_uninorth_resumefunction uninorth_create_gatt_tablefunction uninorth_free_gatt_tablefunction null_cache_flushfunction agp_uninorth_probefunction agp_uninorth_removefunction agp_uninorth_initfunction agp_uninorth_cleanupmodule init agp_uninorth_init
Annotated Snippet
static struct pci_driver agp_uninorth_pci_driver = {
.name = "agpgart-uninorth",
.id_table = agp_uninorth_pci_table,
.probe = agp_uninorth_probe,
.remove = agp_uninorth_remove,
};
static int __init agp_uninorth_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_uninorth_pci_driver);
}
static void __exit agp_uninorth_cleanup(void)
{
pci_unregister_driver(&agp_uninorth_pci_driver);
}
module_init(agp_uninorth_init);
module_exit(agp_uninorth_cleanup);
module_param(aperture, charp, 0);
MODULE_PARM_DESC(aperture,
"Aperture size, must be power of two between 4MB and an\n"
"\t\tupper limit specific to the UniNorth revision.\n"
"\t\tDefault: " DEFAULT_APERTURE_STRING "M");
MODULE_AUTHOR("Ben Herrenschmidt & Paul Mackerras");
MODULE_DESCRIPTION("Apple UniNorth & U3 AGP support");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/of.h`, `linux/pci.h`, `linux/slab.h`, `linux/init.h`, `linux/pagemap.h`, `linux/agp_backend.h`, `linux/delay.h`.
- Detected declarations: `function uninorth_fetch_size`, `function uninorth_tlbflush`, `function uninorth_cleanup`, `function uninorth_configure`, `function uninorth_insert_memory`, `function uninorth_remove_memory`, `function uninorth_agp_enable`, `function agp_uninorth_suspend`, `function agp_uninorth_resume`, `function uninorth_create_gatt_table`.
- 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.