Changeset 166

Show
Ignore:
Timestamp:
01/13/99 22:00:04 (14 years ago)
Author:
frodo
Message:

Documentation updates, and a very small print fix in i2cdump.c

Note especially the autoloading of i2c-dev by adding the following line
to /etc/module.conf (or /etc/conf.module):

alias char-major-89 i2c-dev

Location:
lm-sensors/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/doc/modules

    r108 r166  
    3434  options i2c-core debug=2 
    3535 
     36Finally, it is possible to auto-load the i2c-dev module if a /dev/i2c-* 
     37file is accessed. You need the following line in the configuration file: 
     38  alias char-major-89 i2c-dev 
     39 
    3640With the above, the managing of all those modules is suddenly no problem 
    3741at all! 
     
    4549(src) i2c-proc: i2c-core 
    4650  Creates /proc/bus/i2c* files. 
     51 
     52(src) i2c-dev: smbus i2c-core 
     53  Grants access to /dev/i2c-* files 
    4754 
    4855(src) smbus: i2c-core 
  • lm-sensors/trunk/doc/progs

    r150 r166  
    88  and prints to stdout `bus' statements reflecting the currently detected 
    99  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. 
    1017* prog/dump/isadump (written in C, not installed) 
    1118  This program helps to dump the registers of LM78-like chips, or more 
     
    1724  It will only work for the installed eeprom module from the src/ directory, 
    1825  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. 
    1929* prog/sensors/sensors (written in C, installed by `make install') 
    2030  This pretty-prints the information provided by the modules. It is a normal 
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r165 r166  
    9898  fprintf(stderr,"  WARNING! This program can confuse your I2C bus, " 
    9999          "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", 
    101101          filename,address,size == SMBUS_BYTE_DATA?"byte":"word"); 
    102102  fprintf(stderr,"  You have five seconds to reconsider and press CTRL-C!\n\n");