drivers/i2c/busses/i2c-thunderx-pcidrv.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-thunderx-pcidrv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-thunderx-pcidrv.c- Extension
.c- Size
- 6773 bytes
- Lines
- 278
- 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.
- 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/acpi.hlinux/clk.hlinux/delay.hlinux/i2c.hlinux/i2c-smbus.hlinux/interrupt.hlinux/kernel.hlinux/module.hlinux/of_irq.hlinux/pci.hi2c-octeon-core.h
Detected Declarations
function Copyrightfunction thunder_i2c_int_disablefunction thunder_i2c_hlc_int_enablefunction thunder_i2c_hlc_int_disablefunction thunderx_i2c_functionalityfunction thunder_i2c_clock_enablefunction thunder_i2c_clock_disablefunction thunder_i2c_smbus_setup_offunction thunder_i2c_smbus_setupfunction thunder_i2c_smbus_removefunction thunder_i2c_probe_pcifunction thunder_i2c_remove_pci
Annotated Snippet
static struct pci_driver thunder_i2c_pci_driver = {
.name = DRV_NAME,
.id_table = thunder_i2c_pci_id_table,
.probe = thunder_i2c_probe_pci,
.remove = thunder_i2c_remove_pci,
};
module_pci_driver(thunder_i2c_pci_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Fred Martin <fmartin@caviumnetworks.com>");
MODULE_DESCRIPTION("I2C-Bus adapter for Cavium ThunderX SOC");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/clk.h`, `linux/delay.h`, `linux/i2c.h`, `linux/i2c-smbus.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `function Copyright`, `function thunder_i2c_int_disable`, `function thunder_i2c_hlc_int_enable`, `function thunder_i2c_hlc_int_disable`, `function thunderx_i2c_functionality`, `function thunder_i2c_clock_enable`, `function thunder_i2c_clock_disable`, `function thunder_i2c_smbus_setup_of`, `function thunder_i2c_smbus_setup`, `function thunder_i2c_smbus_remove`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: pattern 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.