Changeset 3490
- Timestamp:
- 08/11/00 12:02:54 (8 years ago)
- Files:
-
- i2c/trunk/doc/dev-interface (modified) (1 diff)
- i2c/trunk/doc/i2c-protocol (modified) (3 diffs)
- i2c/trunk/doc/writing-clients (modified) (4 diffs)
- i2c/trunk/mkpatch/Config.in (modified) (1 diff)
- i2c/trunk/mkpatch/mkpatch.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c/trunk/doc/dev-interface
r3450 r3490 127 127 __s32 i2c_smbus_write_block_data(int file, __u8 command, __u8 length, 128 128 __u8 *values); 129 All these tran actions return -1 on failure; you can read errno to see129 All these transactions return -1 on failure; you can read errno to see 130 130 what happened. The 'write' transactions return 0 on success; the 131 131 'read' transactions return the read value, except for read_block, which i2c/trunk/doc/i2c-protocol
r3428 r3490 19 19 20 20 21 Simple send tran action21 Simple send transaction 22 22 ====================== 23 23 … … 35 35 36 36 37 Combined tran actions37 Combined transactions 38 38 ==================== 39 39 … … 55 55 In a combined transaction, no 'S Addr' is generated at some point. 56 56 For example, setting I2C_M_NOSTART on the second partial message 57 generate ds something like:57 generates something like: 58 58 S Addr Rd [A] [Data] NA Wr [A] Data [A] P 59 59 If you set the I2C_M_NOSTART variable for the first partial message, i2c/trunk/doc/writing-clients
r3477 r3490 37 37 } 38 38 39 The name can be cho osen freely, and may be upto 40 characters long. Please39 The name can be chosen freely, and may be upto 40 characters long. Please 40 40 use something descriptive here. 41 41 … … 660 660 ================ 661 661 662 A generic ioctl-like function call back is supported. You will seldom ly662 A generic ioctl-like function call back is supported. You will seldom 663 663 need this. You may even set it to NULL. 664 664 … … 750 750 751 751 /* This call returns a unique low identifier for each registered adapter, 752 * or -1 if the adapter was not regis itered.752 * or -1 if the adapter was not registered. 753 753 */ 754 754 extern int i2c_adapter_id(struct i2c_adapter *adap); … … 792 792 0644 is safe, as the file will be owned by root:root. 793 793 794 The seventh and eig th parameters should be &sensors_proc_real and794 The seventh and eighth parameters should be &sensors_proc_real and 795 795 &sensors_sysctl_real if you want to export lists of reals (scaled 796 796 integers). You can also use your own function for them, as usual. i2c/trunk/mkpatch/Config.in
r3434 r3490 11 11 dep_tristate 'I2C bit-banging interfaces' CONFIG_I2C_ALGOBIT $CONFIG_I2C 12 12 if [ "$CONFIG_I2C_ALGOBIT" != "n" ]; then 13 dep_tristate ' Philips style parallel port adapter' CONFIG_I2C_PHILIPSPAR $CONFIG_I2C_ALGOBIT 13 dep_tristate ' Philips style parallel port adapter' CONFIG_I2C_PHILIPSPAR $CONFIG_I2C_ALGOBIT $CONFIG_PARPORT 14 14 dep_tristate ' ELV adapter' CONFIG_I2C_ELV $CONFIG_I2C_ALGOBIT 15 15 dep_tristate ' Velleman K9000 adapter' CONFIG_I2C_VELLEMAN $CONFIG_I2C_ALGOBIT i2c/trunk/mkpatch/mkpatch.pl
r3488 r3490 438 438 # 439 439 440 MOD_LIST_NAME := I2C_MODULES441 440 O_TARGET := i2c.o 442 441
