Source Code Structure
The source code structure of I2C is listed in the following code blocks.
The following code block displays the source code structure for the I2C Subsystem layer.
├── drivers │ ├── i2c │ │ ├── i2c-core.h │ │ ├── i2c-boardinfo.c │ │ ├── i2c-core-of.c │ │ ├── i2c-core-slave.c │ │ ├── i2c-mux.c │ │ ├── i2c-core-acpi.c │ │ ├── i2c-core-smbus.c │ │ ├── i2c-smbus.c │ │ ├── i2c-core-base.c │ │ └── i2c-dev.c
The following code block displays the source code structure for the Synopsys DesignWare
I2C adapter driver.
linux-5.15.0 ├── drivers │ ├── i2c │ │ ├── busses │ │ │ ├── i2c-designware-core.h │ │ │ ├── i2c-designware-common.c │ │ │ ├── i2c-designware-master.c │ │ │ ├── i2c-designware-slave.c │ │ │ ├── i2c-designware-pcidrv.c │ │ │ ├── i2c-designware-baytrail.c │ │ │ └── i2c-designware-platdrv.c