drivers/i2c/busses/i2c-pnx.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-pnx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-pnx.c- Extension
.c- Size
- 20840 bytes
- Lines
- 758
- 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/module.hlinux/interrupt.hlinux/ioport.hlinux/delay.hlinux/i2c.hlinux/completion.hlinux/platform_device.hlinux/io.hlinux/err.hlinux/clk.hlinux/slab.hlinux/of.h
Detected Declarations
struct i2c_pnx_mifstruct i2c_pnx_algo_datafunction wait_timeoutfunction wait_resetfunction i2c_pnx_startfunction i2c_pnx_stopfunction i2c_pnx_master_xmitfunction i2c_pnx_master_rcvfunction i2c_pnx_interruptfunction i2c_pnx_timeoutfunction bus_reset_if_activefunction i2c_pnx_xferfunction i2c_pnx_funcfunction i2c_pnx_controller_suspendfunction i2c_pnx_controller_resumefunction i2c_pnx_probefunction i2c_pnx_removefunction i2c_adap_pnx_initfunction i2c_adap_pnx_exitmodule init i2c_adap_pnx_init
Annotated Snippet
subsys_initcall(i2c_adap_pnx_init);
module_exit(i2c_adap_pnx_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `linux/ioport.h`, `linux/delay.h`, `linux/i2c.h`, `linux/completion.h`, `linux/platform_device.h`, `linux/io.h`.
- Detected declarations: `struct i2c_pnx_mif`, `struct i2c_pnx_algo_data`, `function wait_timeout`, `function wait_reset`, `function i2c_pnx_start`, `function i2c_pnx_stop`, `function i2c_pnx_master_xmit`, `function i2c_pnx_master_rcv`, `function i2c_pnx_interrupt`, `function i2c_pnx_timeout`.
- 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.