Couldn't find reference for i2c_smbus functinos
Eugene Surovegin
ebs at ebshome.net
Thu Sep 21 03:14:50 EST 2006
On Wed, Sep 20, 2006 at 11:07:52AM -0400, Sachin Rane wrote:
> 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'.
Please, look for this functions in the kernel source tree, not in
user-space headers.
--
Eugene
More information about the Linuxppc-embedded
mailing list