drivers/i2c/busses/i2c-pxa.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-pxa.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-pxa.c- Extension
.c- Size
- 40325 bytes
- Lines
- 1625
- 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.
- 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/clk.hlinux/delay.hlinux/err.hlinux/errno.hlinux/gpio/consumer.hlinux/i2c.hlinux/init.hlinux/interrupt.hlinux/io.hlinux/kernel.hlinux/module.hlinux/of.hlinux/of_device.hlinux/pinctrl/consumer.hlinux/platform_device.hlinux/platform_data/i2c-pxa.hlinux/property.hlinux/slab.h
Detected Declarations
struct pxa_reg_layoutstruct pxa_i2cstruct bitsenum pxa_i2c_typesfunction decode_bitsfunction decode_ISRfunction decode_ICRfunction i2c_pxa_show_statefunction i2c_pxa_scream_blue_murderfunction i2c_pxa_is_slavemodefunction i2c_pxa_abortfunction i2c_pxa_wait_bus_not_busyfunction i2c_pxa_wait_masterfunction i2c_pxa_set_masterfunction i2c_pxa_wait_slavefunction i2c_pxa_set_slavefunction i2c_pxa_do_resetfunction i2c_pxa_enablefunction i2c_pxa_resetfunction i2c_pxa_slave_txemptyfunction i2c_pxa_slave_rxfullfunction i2c_pxa_slave_startfunction i2c_pxa_slave_stopfunction i2c_pxa_slave_regfunction i2c_pxa_slave_unregfunction i2c_pxa_slave_txemptyfunction i2c_pxa_slave_rxfullfunction i2c_pxa_slave_startfunction i2c_pxa_slave_stopfunction i2c_pxa_start_messagefunction i2c_pxa_stop_messagefunction i2c_pxa_send_mastercodefunction i2c_pxa_master_completefunction i2c_pxa_irq_txemptyfunction i2c_pxa_irq_rxfullfunction i2c_pxa_handlerfunction i2c_pxa_do_xferfunction i2c_pxa_internal_xferfunction i2c_pxa_xferfunction i2c_pxa_functionalityfunction i2c_pxa_pio_set_masterfunction i2c_pxa_do_pio_xferfunction i2c_pxa_pio_xferfunction i2c_pxa_probe_dtfunction i2c_pxa_probe_pdatafunction i2c_pxa_prepare_recoveryfunction i2c_pxa_unprepare_recoveryfunction i2c_pxa_init_recovery
Annotated Snippet
subsys_initcall(i2c_adap_pxa_init);
module_exit(i2c_adap_pxa_exit);
Annotation
- Immediate include surface: `linux/clk.h`, `linux/delay.h`, `linux/err.h`, `linux/errno.h`, `linux/gpio/consumer.h`, `linux/i2c.h`, `linux/init.h`, `linux/interrupt.h`.
- Detected declarations: `struct pxa_reg_layout`, `struct pxa_i2c`, `struct bits`, `enum pxa_i2c_types`, `function decode_bits`, `function decode_ISR`, `function decode_ICR`, `function i2c_pxa_show_state`, `function i2c_pxa_scream_blue_murder`, `function i2c_pxa_is_slavemode`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: integration 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.