drivers/i2c/busses/i2c-at91-core.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-at91-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-at91-core.c- Extension
.c- Size
- 8393 bytes
- Lines
- 358
- Domain
- Driver Families
- Bucket
- drivers/i2c
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/clk.hlinux/err.hlinux/i2c.hlinux/io.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/pm_runtime.hlinux/pinctrl/consumer.hi2c-at91.h
Detected Declarations
function Copyrightfunction at91_twi_writefunction at91_disable_twi_interruptsfunction at91_twi_irq_savefunction at91_twi_irq_restorefunction at91_init_twi_busfunction at91_twi_probefunction at91_twi_removefunction at91_twi_runtime_suspendfunction at91_twi_runtime_resumefunction at91_twi_suspend_noirqfunction at91_twi_resume_noirqfunction at91_twi_initfunction at91_twi_exitmodule init at91_twi_init
Annotated Snippet
subsys_initcall(at91_twi_init);
module_exit(at91_twi_exit);
MODULE_AUTHOR("Nikolaus Voss <n.voss@weinmann.de>");
MODULE_DESCRIPTION("I2C (TWI) driver for Atmel AT91");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:at91_i2c");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/err.h`, `linux/i2c.h`, `linux/io.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/pm_runtime.h`.
- Detected declarations: `function Copyright`, `function at91_twi_write`, `function at91_disable_twi_interrupts`, `function at91_twi_irq_save`, `function at91_twi_irq_restore`, `function at91_init_twi_bus`, `function at91_twi_probe`, `function at91_twi_remove`, `function at91_twi_runtime_suspend`, `function at91_twi_runtime_resume`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: integration 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.