[i2c] Documentation/i2c/dev-interface

David Brownell david-b at pacbell.net
Mon Sep 10 08:53:59 CEST 2007


The $SUBJECT document says:

> 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);


Where are those defined?  Such functions don't seem to exist
in in a library on any of my Linux distros.

I get the impression that part of the text is very old.  Last
updated mid-2005, and maybe that part dates from some old 2.4
stuff that's no longer relevant.

Also, a clear omission is the SMBus "block write-block read
process call" primitive...

- Dave




More information about the i2c mailing list