root/lm-sensors/trunk/prog/dump/isadump.8

Revision 5961, 4.0 KB (checked in by khali, 10 months ago)

isadump: Add support for word (16-bit) and long (32-bit) reads

Sometimes the hardware expects 16-bit or 32-bit reads rather than byte
reads. Add support to isadump so that the user can ask for such reads.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1.TH ISADUMP 8 "April 2011"
2.SH NAME
3isadump \- examine ISA registers
4
5.SH SYNOPSIS
6.B isadump
7.RB [ -y ]
8.RB [ -W | -L ]
9.RB [ "-k V1,V2..." ]
10.I addrreg
11.I datareg
12.RI [ "bank " [ bankreg ]]
13#for I2C-like access
14.br
15.B isadump
16.B -f
17.RB [ -y ]
18.RB [ -W | -L ]
19.I address
20.RI [ "range " [ "bank " [ bankreg ]]]
21#for flat address space
22
23.SH DESCRIPTION
24isadump is a small helper program to examine registers visible through the ISA
25bus. It is intended to probe any chip that lives on the ISA bus working with an
26address register and a data register (I2C-like access) or a flat range (of up
27to 256 bytes).
28
29.SH OPTIONS
30.TP
31.B -f
32Enable flat address space mode.
33.TP
34.B -y
35Disable interactive mode. By default, isadump will wait for a confirmation
36from the user before messing with the ISA bus. When this flag is used, it
37will perform the operation directly. This is mainly meant to be used in
38scripts.
39.TP
40.B -k V1,V2...
41Specify a comma-separated list of bytes to send as the key sequence to enter
42the chip configuration mode. Most Super-I/O chips need this.
43Known key sequences are: 0x87,0x01,0x55,0x55 for ITE, 0x55 for SMSC, 0x87,0x87
44for Winbond and VIA, none needed for National Semiconductor.
45.TP
46.B -W
47Perform 16-bit reads.
48.TP
49.B -L
50Perform 32-bit reads.
51
52.SH OPTIONS (I2C-like access mode)
53At least two options must be provided to isadump. \fIaddrreg\fR contains the
54ISA address of the address register for the chip to probe; \fIdatareg\fR
55contains the address of the data register. Both addresses are integers between
560x0000 and 0x3FFF. Usually, if the chip's base address is 0x0nn0, the
57address register is at 0x0nn5 and the data register is at 0x0nn6. The most
58common base address for hardware monitoring chips is 0x0290.
59.PP
60For Super-I/O chips, address register is typically at 0x2E with data
61register at 0x2F.
62.PP
63The \fIbank\fR and \fIbankreg\fR parameters are useful on the Winbond chips
64as well as on Super-I/O chips.
65\fIbank\fR is an integer between 0 and 31, and \fIbankreg\fR is an integer
66between 0x00 and 0xFF (default value: 0x4E for Winbond chips, 0x07
67for Super-I/O chips). The W83781D datasheet has more information on bank
68selection.
69
70.SH OPTIONS (flat address space mode)
71In flat mode, only one parameter is
72mandatory. \fIaddress\fR contains the ISA address of the chip to probe;
73it is an integer between 0x0000 and 0xFFFF.
74If provided, \fIrange\fR is how many bytes should be read (must be a
75multiple of 16). If the range isn't provided, it defaults to 256 bytes
76and the address is forcibly aligned on a 256-byte boundary.
77.PP
78The \fIbank\fR and \fIbankreg\fR parameters are useful on the National
79Semiconductor PC87365 and PC87366 Super-I/O chips.
80\fIbank\fR is an integer between 0 and 31, and \fIbankreg\fR is an integer
81between 0x00 and 0xFF (default value: 0x09; must fit in the specified
82range). See the PC87365 datasheet for more information on bank selection.
83
84.SH NOTES
85If no bank is specified, no bank change operation is performed.
86.PP
87If a bank is specified, the original value is restored before isadump exits.
88.PP
89Dumping Super-I/O chips is typically a two-step process. First, you will have
90to access the main Super-I/O address using a command like:
91isadump 0x2e 0x2f 0x09.
92This will select logical device 9 (correct value depend on the chip). At 0x60
93you will find the logical device address word, for example "ec c0".
94Then you can use a command like:
95isadump -f 0xecc0 16.
96This will dump the logical device registers. The correct range depends on
97the chip.
98
99.SH WARNING
100Poking around in ISA data space is extremely dangerous.
101Running isadump with random parameters can cause system
102crashes, data loss, and worse!  Be extremely careful when using
103this program.
104
105.SH SEE ALSO
106i2cdump(8), isaset(8)
107
108.SH AUTHOR
109Frodo Looijaard, Mark D. Studebaker, and the lm_sensors group
110(http://www.lm-sensors.org/)
111.PP
112This manual page was originally written by David Z Maze <dmaze@debian.org> for
113the Debian GNU/Linux system. It was then reviewed and augmented by the lm_sensors
114team and is now part of the lm_sensors source distribution.
Note: See TracBrowser for help on using the browser.