资料介绍
Linux_I2C总线分析(主要是probe的方式)1
Linux I2C 总线浅析
㈠ Overview
[pic]
内核空间层次!
[pic]
i2c adapter 是一个struct, 用来抽象一个物理i2c bus ,而且还和linux
设备驱动架构柔和在一起..
如果只说硬件的话,就是在CPU内部集成的一个I2C控制器(提供给用户的就是那几个reg
ister),硬件上并没的所谓的adapter,client这些东东,,adapter和client都是linu
x驱动软件抽象出来的东西
资料帖子:
http://bbs.chinaunix.net/thread-1926465-1-1.html
struct i2c_algorithm {
/* If an adapter algorithm can't do I2C-level access, set master_xfer
to NULL. If an adapter algorithm can do SMBus access, set
smbus_xfer. If set to NULL, the SMBus protocol is simulated
using common I2C messages */
/* master_xfer should return the number of messages successfully
processed, or a negative