Couldn't find reference for i2c_smbus functinos

Sachin Rane SRane at alphion.com
Thu Sep 21 01:07:52 EST 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?
 
Thanks and Regards,
Sachin Rane
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060920/d28513a4/attachment.htm 


More information about the Linuxppc-embedded mailing list