Changeset 166
- Timestamp:
- 01/13/99 22:00:04 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 3 modified
-
doc/modules (modified) (2 diffs)
-
doc/progs (modified) (2 diffs)
-
prog/dump/i2cdump.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/doc/modules
r108 r166 34 34 options i2c-core debug=2 35 35 36 Finally, it is possible to auto-load the i2c-dev module if a /dev/i2c-* 37 file is accessed. You need the following line in the configuration file: 38 alias char-major-89 i2c-dev 39 36 40 With the above, the managing of all those modules is suddenly no problem 37 41 at all! … … 45 49 (src) i2c-proc: i2c-core 46 50 Creates /proc/bus/i2c* files. 51 52 (src) i2c-dev: smbus i2c-core 53 Grants access to /dev/i2c-* files 47 54 48 55 (src) smbus: i2c-core -
lm-sensors/trunk/doc/progs
r150 r166 8 8 and prints to stdout `bus' statements reflecting the currently detected 9 9 adapters. 10 * prog/dump/i2cdump (written in C, not installed) 11 This program helps to dump the registers of a I2C device that understands 12 the 'byte data' or 'word data' SMBus protocols. Usual syntax: 13 ./i2cdump 0 0x49 b 14 Here the '0' stands for i2c-0 (check /proc/bus/i2c to find out which bus 15 you need), '0x49' is the device address, and 'b' or 'w' stands for byte 16 or word data. 10 17 * prog/dump/isadump (written in C, not installed) 11 18 This program helps to dump the registers of LM78-like chips, or more … … 17 24 It will only work for the installed eeprom module from the src/ directory, 18 25 not for the old one in the i2c/drivers/ directory. 26 * prog/mkdev/mkdev.sh (written in bash, not installed) 27 This script creates the /dev/i2c-* files. Please check the source before 28 you run it, as you may need to set some variables first. 19 29 * prog/sensors/sensors (written in C, installed by `make install') 20 30 This pretty-prints the information provided by the modules. It is a normal -
lm-sensors/trunk/prog/dump/i2cdump.c
r165 r166 98 98 fprintf(stderr," WARNING! This program can confuse your I2C bus, " 99 99 "cause data loss and worse!\n"); 100 fprintf(stderr," I will probe file %s, address %x, mode %s\n",100 fprintf(stderr," I will probe file %s, address 0x%x, mode %s\n", 101 101 filename,address,size == SMBUS_BYTE_DATA?"byte":"word"); 102 102 fprintf(stderr," You have five seconds to reconsider and press CTRL-C!\n\n");
