drivers/i2c/busses/i2c-eg20t.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-eg20t.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-eg20t.c- Extension
.c- Size
- 24024 bytes
- Lines
- 890
- Domain
- Driver Families
- Bucket
- drivers/i2c
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/module.hlinux/kernel.hlinux/delay.hlinux/errno.hlinux/i2c.hlinux/fs.hlinux/io.hlinux/types.hlinux/interrupt.hlinux/jiffies.hlinux/pci.hlinux/mutex.hlinux/ktime.hlinux/slab.h
Detected Declarations
struct i2c_algo_pch_datastruct adapter_infofunction pch_setbitfunction pch_clrbitfunction pch_i2c_initfunction pch_i2c_wait_for_bus_idlefunction pch_i2c_startfunction pch_i2c_stopfunction pch_i2c_wait_for_check_xferfunction pch_i2c_repstartfunction pch_i2c_writebytesfunction pch_i2c_sendackfunction pch_i2c_sendnackfunction pch_i2c_restartfunction pch_i2c_readbytesfunction pch_i2c_cbfunction pch_i2c_handlerfunction pch_i2c_xferfunction pch_i2c_funcfunction pch_i2c_disbl_intfunction pch_i2c_probefunction pch_i2c_removefunction pch_i2c_suspendfunction pch_i2c_resume
Annotated Snippet
static struct pci_driver pch_pcidriver = {
.name = KBUILD_MODNAME,
.id_table = pch_pcidev_id,
.probe = pch_i2c_probe,
.remove = pch_i2c_remove,
.driver.pm = &pch_i2c_pm_ops,
};
module_pci_driver(pch_pcidriver);
MODULE_DESCRIPTION("Intel EG20T PCH/LAPIS Semico ML7213/ML7223/ML7831 IOH I2C");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Tomoya MORINAGA. <tomoya.rohm@gmail.com>");
module_param(pch_i2c_speed, int, (S_IRUSR | S_IWUSR));
module_param(pch_clk, int, (S_IRUSR | S_IWUSR));
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/delay.h`, `linux/errno.h`, `linux/i2c.h`, `linux/fs.h`, `linux/io.h`, `linux/types.h`.
- Detected declarations: `struct i2c_algo_pch_data`, `struct adapter_info`, `function pch_setbit`, `function pch_clrbit`, `function pch_i2c_init`, `function pch_i2c_wait_for_bus_idle`, `function pch_i2c_start`, `function pch_i2c_stop`, `function pch_i2c_wait_for_check_xfer`, `function pch_i2c_repstart`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.