[i2c] Couldn't find reference for i2c_smbus functinos

Sachin Rane SRane at alphion.com
Wed Sep 20 17:03:37 CEST 2006


Hi,
 
Following text is from "/usr/local/linux/Doumentation/dev-interface":
----------------------------------------------------------------------------------------------------------------------------------
You can do SMBus level transactions (see documentation file smbus-protocol
for details) through the following functions:
  __s32 i2c_smbus_write_quick(int file, __u8 value);
  __s32 i2c_smbus_read_byte(int file);
  __s32 i2c_smbus_write_byte(int file, __u8 value);
  __s32 i2c_smbus_read_byte_data(int file, __u8 command);
  __s32 i2c_smbus_write_byte_data(int file, __u8 command, __u8 value);
  __s32 i2c_smbus_read_word_data(int file, __u8 command);
  __s32 i2c_smbus_write_word_data(int file, __u8 command, __u16 value);
  __s32 i2c_smbus_process_call(int file, __u8 command, __u16 value);
  __s32 i2c_smbus_read_block_data(int file, __u8 command, __u8 *values);
  __s32 i2c_smbus_write_block_data(int file, __u8 command, __u8 length,
                                   __u8 *values);
---------------------------------------------------------------------------------------
 
I searched in the 2.6.13 version of Timesys and Suse linux, but I didn't find definition or declaration in file '/usr/include/linux/i2c-dev.h' and '/usr/include/linux/i2c.h'.
 
Am I missing any information about the location of the above functions?
Do I need to implement the above functions?
 
Regards,
Sachin Rane
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/i2c/attachments/20060920/8037138e/attachment.html 


More information about the i2c mailing list