linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Couldn't find reference for i2c_smbus functinos
       [not found] <8584FDC94AFF7640B17B8A89B23B19B34F6573@sbsserver.AlphionCorp.local>
@ 2006-09-20 15:07 ` Sachin Rane
  2006-09-20 16:27   ` Jenkins, Clive
  2006-09-20 17:14   ` Eugene Surovegin
  0 siblings, 2 replies; 3+ messages in thread
From: Sachin Rane @ 2006-09-20 15:07 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]

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
 

[-- Attachment #2: Type: text/html, Size: 2259 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Couldn't find reference for i2c_smbus functinos
  2006-09-20 15:07 ` Couldn't find reference for i2c_smbus functinos Sachin Rane
@ 2006-09-20 16:27   ` Jenkins, Clive
  2006-09-20 17:14   ` Eugene Surovegin
  1 sibling, 0 replies; 3+ messages in thread
From: Jenkins, Clive @ 2006-09-20 16:27 UTC (permalink / raw)
  To: Sachin Rane, linuxppc-embedded

> 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);
> ...
> Am I missing any information about the location of the above
functions?

Try reading
http://www.lm-sensors.org/browser/i2c/trunk/doc/dev-interface
and other material on the lm-sensors site

> Do I need to implement the above functions?

No.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Couldn't find reference for i2c_smbus functinos
  2006-09-20 15:07 ` Couldn't find reference for i2c_smbus functinos Sachin Rane
  2006-09-20 16:27   ` Jenkins, Clive
@ 2006-09-20 17:14   ` Eugene Surovegin
  1 sibling, 0 replies; 3+ messages in thread
From: Eugene Surovegin @ 2006-09-20 17:14 UTC (permalink / raw)
  To: Sachin Rane; +Cc: linuxppc-embedded

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-20 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <8584FDC94AFF7640B17B8A89B23B19B34F6573@sbsserver.AlphionCorp.local>
2006-09-20 15:07 ` Couldn't find reference for i2c_smbus functinos Sachin Rane
2006-09-20 16:27   ` Jenkins, Clive
2006-09-20 17:14   ` Eugene Surovegin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).