Show
Ignore:
Timestamp:
08/12/00 18:37:15 (13 years ago)
Author:
mds
Message:

(mds) add i2c block read/write support from Rickard Westman.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c.h

    r3486 r3491  
    121121                                      u8 command, u8 length, 
    122122                                      u8 *values); 
     123extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, 
     124                                          u8 command, u8 length, 
     125                                          u8 *values); 
    123126 
    124127 
     
    438441/* SMBus transaction types (size parameter in the above functions)  
    439442   Note: these no longer correspond to the (arbitrary) PIIX4 internal codes! */ 
    440 #define I2C_SMBUS_QUICK         0 
    441 #define I2C_SMBUS_BYTE          1 
    442 #define I2C_SMBUS_BYTE_DATA     2  
    443 #define I2C_SMBUS_WORD_DATA     3 
    444 #define I2C_SMBUS_PROC_CALL     4 
    445 #define I2C_SMBUS_BLOCK_DATA    5 
     443#define I2C_SMBUS_QUICK             0 
     444#define I2C_SMBUS_BYTE              1 
     445#define I2C_SMBUS_BYTE_DATA         2  
     446#define I2C_SMBUS_WORD_DATA         3 
     447#define I2C_SMBUS_PROC_CALL         4 
     448#define I2C_SMBUS_BLOCK_DATA        5 
     449#define I2C_SMBUS_I2C_BLOCK_DATA    6 
    446450 
    447451