使用struct subsys_private可以将struct bus_type中的部分细节屏蔽掉,利于外界使用bus_type;struct driver_private和struct device_private都有类似的功能。 i2c_bus_type是 bus_type 类型的全局变量,这个变量已经被 linux 内核赋值好了,其结构体成员对应的函数也已经在内核里面写好,定义在drivers/i2c/i2c-core-base....
unsignedintclass;/*classes to allow probing for*/conststructi2c_algorithm *algo;/*the algorithm to access the bus*/void*algo_data;/*data fields that are valid for all devices*/structrt_mutex bus_lock;inttimeout;/*in jiffies*/intretries;structdevice dev;/*the adapter device*/intnr;charnam...
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 value on error */ int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*smbus_xfer) ...
6. 205 * @name: Indicates the type of thedevice, usually a chip name that's 7. 206 * generic enough to hide second-sourcing and compatible revisions. 8. 207 * @adapter: manages the bus segmenthosting this I2C device 9. 208 * @driver: device's driver, hencepointer to access routines...
(struct i2c_client *); /* driver model interfaces that don't relate to enumeration */ void (*shutdown)(struct i2c_client *); int (*suspend)(struct i2c_client *, pm_message_t mesg); int (*resume)(struct i2c_client *); /* Alert callback, for example for the SMBus alert protocol...
IO-EXPANDER-EVM: I2C and SMBus IO Expander Evaluation Module The IO expander evaluation module (EVM) lets you evaluate TI's portfolio of SMBus and I2CIO expander linedevices. TheTCA6424AandTCA9539come installed on the board. The 24-pin TSSOP footprint also supportsTCA6408A,TCA6416A,TCA9534...
The Hs-Mode I2C Controller IP Core interfaces a microprocessor via the AMBA AXI / AHB / APB Bus or Avalon / Qsys Bus to an I2C Bus in Hs-Mode (3.4 Mbit/s) / Fast-Mode Plus (1 Mbit/s) / Fast-Mode (400 Kbit/s) / Standard-Mode (100 Kbit/s). The Hs-Mode I2C Controller IP ...
Fully compatible with the Certus GPIO library, this cell can be configured across a broad range of open-drain interfaces, resistive and capacitive loads. Our Open Drain IO solutions are also SMBUS, DDC, CEC and HPD compliant. Built into our IO libraries, and also offered as a separate...
Byte to be sent Description This executes the SMBus “send byte” protocol, returning negative errno else zero on success. Name i2c_smbus_read_byte_data— SMBus “read byte” protocol Synopsis s32fsfunci2c_smbus_read_byte_data ( const struct i2c_client *client, u8command); Arguments client...
i2c_smbus_read_byte — SMBus “receive byte” protocol Synopsis s32 fsfunci2c_smbus_read_byte (const struct i2c_client * client); Arguments client Handle to slave device Description This executes the SMBus “receive byte” protocol, returning negative errno else the byte received from the dev...