drivers/i2c/busses/i2c-s3c2410.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-s3c2410.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-s3c2410.c- Extension
.c- Size
- 30291 bytes
- Lines
- 1207
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/kernel.hlinux/module.hlinux/i2c.hlinux/init.hlinux/time.hlinux/interrupt.hlinux/delay.hlinux/errno.hlinux/err.hlinux/platform_device.hlinux/pm_runtime.hlinux/clk.hlinux/cpufreq.hlinux/slab.hlinux/io.hlinux/of.hlinux/gpio/consumer.hlinux/pinctrl/consumer.hlinux/mfd/syscon.hlinux/regmap.hasm/irq.hlinux/platform_data/i2c-s3c2410.h
Detected Declarations
struct s3c24xx_i2cenum s3c24xx_i2c_statefunction s3c24xx_get_device_quirksfunction s3c24xx_i2c_master_completefunction s3c24xx_i2c_disable_ackfunction s3c24xx_i2c_enable_ackfunction s3c24xx_i2c_disable_irqfunction s3c24xx_i2c_enable_irqfunction is_ackfunction s3c24xx_i2c_message_startfunction s3c24xx_i2c_stopfunction busfunction is_lastmsgfunction is_msglastfunction is_msgendfunction i2c_s3c_irq_nextbytefunction s3c24xx_i2c_irqfunction s3c24xx_i2c_disable_busfunction s3c24xx_i2c_set_masterfunction s3c24xx_i2c_wait_idlefunction ktime_us_deltafunction s3c24xx_i2c_doxferfunction s3c24xx_i2c_xferfunction s3c24xx_i2c_xfer_atomicfunction s3c24xx_i2c_funcfunction s3c24xx_i2c_calcdivisorfunction s3c24xx_i2c_clockratefunction s3c24xx_i2c_parse_dt_gpiofunction s3c24xx_i2c_parse_dt_gpiofunction s3c24xx_i2c_initfunction s3c24xx_i2c_parse_dtfunction s3c24xx_i2c_parse_dtfunction unitfunction s3c24xx_i2c_removefunction s3c24xx_i2c_suspend_noirqfunction s3c24xx_i2c_resume_noirqfunction i2c_adap_s3c_initfunction i2c_adap_s3c_exitmodule init i2c_adap_s3c_init
Annotated Snippet
subsys_initcall(i2c_adap_s3c_init);
static void __exit i2c_adap_s3c_exit(void)
{
platform_driver_unregister(&s3c24xx_i2c_driver);
}
module_exit(i2c_adap_s3c_exit);
MODULE_DESCRIPTION("S3C24XX I2C Bus driver");
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/i2c.h`, `linux/init.h`, `linux/time.h`, `linux/interrupt.h`, `linux/delay.h`, `linux/errno.h`.
- Detected declarations: `struct s3c24xx_i2c`, `enum s3c24xx_i2c_state`, `function s3c24xx_get_device_quirks`, `function s3c24xx_i2c_master_complete`, `function s3c24xx_i2c_disable_ack`, `function s3c24xx_i2c_enable_ack`, `function s3c24xx_i2c_disable_irq`, `function s3c24xx_i2c_enable_irq`, `function is_ack`, `function s3c24xx_i2c_message_start`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.